Skip to main content
Glama

list_authorized_companies

Read-onlyIdempotent

List the companies this connection may act for, and what it may do on each.

Call it before acting when the user has more than one company, or when a tool answered that it needs a company. Each row carries the company_id (UUID) and tax_id (CNPJ or CPF) the other tools accept as company_id or company_tax_id, and the permissions granted there.

One connection may cover several companies; when it covers only one, the other tools need no company at all. Read-only.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "list_authorized_companies"
  }
}

Input Schema

NameRequiredDescriptionDefault

No arguments

Output Schema

NameRequiredDescriptionDefault
companiesNo
environmentNohomologation or production, for every company here.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedOutput schema / $defs / AuthorizedCompany / properties / permissions / description
      Previous value: -"The scopes granted on this company: invoice:read consults and lists, invoice:issue issues and reissues, invoice:write corrects and manifests, invoice:cancel cancels and invalidates numbering."New value: +"The scopes granted on this company: invoice:read consults and lists, invoice:issue issues and reissues, invoice:write corrects and manifests, invoice:cancel cancels and invalidates numbering, webhook:manage registers and removes webhooks."
  2. Changed9 schema fields changed
    • removedInput schema / title
      Removed value: -"list_authorized_companiesArguments"
    • removedOutput schema / $defs / AuthorizedCompany / properties / company_id / title
      Removed value: -"Company Id"
    • removedOutput schema / $defs / AuthorizedCompany / properties / name / title
      Removed value: -"Name"
    • removedOutput schema / $defs / AuthorizedCompany / properties / permissions / title
      Removed value: -"Permissions"
    • removedOutput schema / $defs / AuthorizedCompany / properties / tax_id / title
      Removed value: -"Tax Id"
    • removedOutput schema / $defs / AuthorizedCompany / title
      Removed value: -"AuthorizedCompany"
    • removedOutput schema / properties / companies / title
      Removed value: -"Companies"
    • removedOutput schema / properties / environment / title
      Removed value: -"Environment"
    • removedOutput schema / title
      Removed value: -"AuthorizedCompanies"
  3. Added

TDQS

A4.6/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and openWorldHint=false, so the 'Read-only' line is largely redundant. The description does add real behavioral context beyond the annotations: what each row contains (company_id UUID, tax_id as CNPJ or CPF, granted permissions) and how a single-company connection changes downstream tool calls.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Content is front-loaded with purpose first, then the call trigger, then row contents. It is efficient overall, though the 'Read-only' trailing line adds nothing given the annotations and the hard line breaks fragment otherwise single sentences.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a zero-parameter, read-only discovery tool with an output schema, this covers everything an agent needs: when to call it, what identifiers it yields, how those identifiers plug into other tools, and the single-company edge case. No material gap remains.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The tool takes no parameters, so the schema baseline is 4. The description goes further by mapping returned identifiers onto the parameter names other tools accept (company_id or company_tax_id), which is useful cross-tool semantics even though it describes output rather than input.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The opening sentence states a specific verb and resource — 'list the companies this connection may act for' — and adds the scope qualifier 'and what it may do on each'. That distinguishes it from sibling listers such as list_clients, which list client records rather than connection authorization scope.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It gives explicit trigger conditions: 'call it before acting when the user has more than one company, or when a tool answered that it needs a company'. It also states the inverse case — when only one company is covered, other tools need no company argument at all — which is a genuine when-not-to-call rule.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.