Skip to main content
Glama

Review company billing

get_company_billing
Read-only

A company's billing state (prospect, working = paid active, or archived): activation quote, annual capacity, approval need, live work blocking archive. Never activates; null = existing pricing contract. No account_id: quiet = active accounts idle 90+ days, nothing open; a person archives at review_url.

When to use: Before activating or archiving a company, review its current billing state and price — or, without a company, list the active accounts that have gone quiet so a person can review them for archiving.

Example: Which accounts am I paying for that have gone quiet?

Input Schema

NameRequiredDescriptionDefault
account_idNoCompany uuid. Omit for quiet accounts.

Output Schema

NameRequiredDescriptionDefault
quietNo
billingNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • removedInput schema / $schema
      Removed value: -"https://json-schema.org/draft/2020-12/schema"
  2. Changed1 schema field changed
    • removedInput schema / properties / account_id / pattern
      Removed value: -"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
  3. Changed4 schema fields changed
    • removedOutput schema / $schema
      Removed value: -"https://json-schema.org/draft/2020-12/schema"
    • removedOutput schema / additionalProperties
      Removed value: -{}
    • changedOutput schema / properties / billing / anyOf
      Previous value: -[
      -  {
      -    "additionalProperties": {},
      -    "properties": {
      -      "activationPriceMinor": {
      -        "type": "number"
      -      },
      -      "approvalRequired": {
      -        "type": "boolean"
      -      },
      -      "billingInterval": {
      -        "enum": [
      -          "month",
      -          "year"
      -        ],
      -        "type": "string"
      -      },
      -      "blockers": {
      -        "items": {
      -          "additionalProperties": false,
      -          "properties": {
      -            "id": {
      -              "type": "string"
      -            },
      -            "kind": {
      -              "type": "string"
      -            },
      -            "label": {
      -              "type": "string"
      -            }
      -          },
      -          "required": [
      -            "kind",
      -            "id",
      -            "label"
      -          ],
      -          "type": "object"
      -        },
      -        "type": "array"
      -      },
      -      "canActivate": {
      -        "type": "boolean"
      -      },
      -      "canArchive": {
      -        "type": "boolean"
      -      },
      -      "committedCapacity": {
      -        "anyOf": [
      -          {
      -            "type": "number"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ]
      -      },
      -      "currency": {
      -        "enum": [
      -          "usd",
      -          "eur",
      -          "sek"
      -        ],
      -        "type": "string"
      -      },
      -      "currentPriceMinor": {
      -        "type": "number"
      -      },
      -      "enabled": {
      -        "type": "boolean"
      -      },
      -      "revision": {
      -        "type": "number"
      -      },
      -      "state": {
      -        "enum": [
      -          "prospect",
      -          "working",
      -          "archived"
      -        ],
      -        "type": "string"
      -      },
      -      "workingCount": {
      -        "type": "number"
      -      }
      -    },
      -    "required": [
      -      "currency",
      -      "enabled",
      -      "state",
      -      "revision",
      -      "activationPriceMinor",
      -      "currentPriceMinor",
      -      "billingInterval",
      -      "workingCount",
      -      "committedCapacity",
      -      "canActivate",
      -      "canArchive",
      -      "approvalRequired",
      -      "blockers"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "properties": {
      +      "activationPriceMinor": {
      +        "type": "number"
      +      },
      +      "approvalRequired": {
      +        "type": "boolean"
      +      },
      +      "billingInterval": {
      +        "enum": [
      +          "month",
      +          "year"
      +        ],
      +        "type": "string"
      +      },
      +      "blockers": {
      +        "items": {
      +          "properties": {
      +            "id": {
      +              "type": "string"
      +            },
      +            "kind": {
      +              "type": "string"
      +            },
      +            "label": {
      +              "type": "string"
      +            }
      +          },
      +          "required": [
      +            "kind",
      +            "id",
      +            "label"
      +          ],
      +          "type": "object"
      +        },
      +        "type": "array"
      +      },
      +      "canActivate": {
      +        "type": "boolean"
      +      },
      +      "canArchive": {
      +        "type": "boolean"
      +      },
      +      "committedCapacity": {
      +        "type": [
      +          "number",
      +          "null"
      +        ]
      +      },
      +      "currency": {
      +        "enum": [
      +          "usd",
      +          "eur",
      +          "sek"
      +        ],
      +        "type": "string"
      +      },
      +      "currentPriceMinor": {
      +        "type": "number"
      +      },
      +      "enabled": {
      +        "type": "boolean"
      +      },
      +      "revision": {
      +        "type": "number"
      +      },
      +      "state": {
      +        "enum": [
      +          "prospect",
      +          "working",
      +          "archived"
      +        ],
      +        "type": "string"
      +      },
      +      "workingCount": {
      +        "type": "number"
      +      }
      +    },
      +    "required": [
      +      "currency",
      +      "enabled",
      +      "state",
      +      "revision",
      +      "activationPriceMinor",
      +      "currentPriceMinor",
      +      "billingInterval",
      +      "workingCount",
      +      "committedCapacity",
      +      "canActivate",
      +      "canArchive",
      +      "approvalRequired",
      +      "blockers"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • changedOutput schema / properties / quiet / anyOf
      Previous value: -[
      -  {
      -    "additionalProperties": {},
      -    "properties": {},
      -    "type": "object"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "properties": {},
      +    "type": "object"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
  4. Changed3 schema fields changed
    • changedInput schema / properties / account_id / description
      Previous value: -"The account (company) id to review — a uuid from a previous read or search_records({object_type:\"account\"})."New value: +"Company uuid. Omit for quiet accounts."
    • removedInput schema / required
      Removed value: -[
      -  "account_id"
      -]
    • addedOutput schema / properties / quiet
      Added value: +{
      +  "anyOf": [
      +    {
      +      "additionalProperties": {},
      +      "properties": {},
      +      "type": "object"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ]
      +}
  5. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Beyond readOnlyHint=true, the description discloses that it never activates, that a null value means an existing pricing contract, that 'quiet' means active accounts idle 90+ days with nothing open, and that archiving is done by a person at review_url (human-in-the-loop). These are substantive behavioral facts the annotations do not carry.

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?

Purpose is front-loaded and the description is split into purpose, when-to-use, and example. The first paragraph is a bit telegraphic ('approval need, live work blocking archive') and relies heavily on inline backtick terms, but no sentence is wasted.

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?

An output schema exists, so return-format detail is unnecessary. The description covers the non-obvious behavior for a single-param read tool: state semantics, the omit path, the quiet/human-review flow, and the read-only guarantee. Nothing an agent needs to invoke it correctly is missing.

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?

Schema coverage is 100% for the single optional account_id, so baseline is 3. The description earns above baseline by expanding what omitting the parameter does ('quiet' = active accounts idle 90+ days, nothing open, person acts at review_url), adding meaning beyond the schema's terse 'Omit for quiet accounts'.

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 description names a specific resource (a company's billing state) and enumerates the states (prospect, working=paid active, archived) plus the fields returned. 'Never activates' cleanly separates it from the sibling manage_company_billing mutation tool, so an agent can distinguish read vs write without opening either schema.

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

Usage Guidelines4/5

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

The 'When to use' block explicitly states the trigger ('before activating or archiving') and covers the no-account_id mode, with a concrete example. It doesn't explicitly name manage_company_billing as the write alternative, but the read/write split is strongly implied by 'Never activates'.

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.

Resources