CorefinityCorefinityDocs
Open the Control PanelControl Panel
Organisation · 3 of 6

corestack_company_agencies_list

Your company's agencies.

Scope readNo secrets returned
On this page

When to use it

List the agencies your company is a client of: the companies whose people can work on your sites, tickets and billing through their link to your company. Use it to see who has access through an agency, before detaching one with corestack_company_agency_detach, or to find the environments that need a new deployment connection after an agency was detached. Needs the read scope. The same as the Agencies section of your organisation page in the Control Panel and GET /api/company/agencies.

Each agency is listed by name only, with its type (agency or partner), manages_sites (how many of your sites it manages) and deploys_through (how many of your environments deploy through one of its deployment connections). An agency that no longer exists is listed as "Removed agency" and can still be detached.

repository_gaps lists your environments that lost their repository when an agency was detached and still need a new deployment connection before their next deployment: each one's environment_id, environment_name, website_id, the agency it deployed through (agency_id, agency_name) and detached_at. A gap closes on its own once the environment has a repository again, and stays closed if that repository is removed later.

can_detach is true when you may detach an agency: you are one of your company's owners and the company is not archived. A company that is nobody's client lists no agencies.

Ask for it

Prompt
Using the Corefinity MCP server, call corestack_company_agencies_list. (Your company's agencies.) Tell me what it returned.

Inputs

None.

Example call

tools/call
{
  "name": "corestack_company_agencies_list",
  "arguments": {}
}

If it is refused

ReasonWhat to do
pin_refusedA token limited to some sites cannot read company-wide links; ask the token's creator or a company owner to let it work everywhere in your company.
invalid_argumentsThe arguments do not match the tool's input schema, or the Control Panel refused a field. Fix the fields named in the answer and call again.
tenant_mismatchThe object does not exist or the token may not see it. Check the id.
scope_requiredThe token lacks a scope this call needs. Open the link in the answer to add it, then call again.
rate_limitedToo many calls. Wait for the number of seconds the answer names.
temporarily_unavailableThe Control Panel could not answer just now. Nothing was started; try again shortly.
internal_errorSomething went wrong on our side. Quote the trace id to support.

The same task elsewhere

Was this helpful?
Open in ClaudeOpen in ChatGPT