Skip to main content
Glama

Get Cost Metadata

get_metadata
Read-only

Get all the cost-query filter vocabularies in ONE call: the available service codes, tag keys, and sub-accounts ({ accountId, accountName }) the organization has data for. DEFAULTS TO the AWS vocabularies (service codes, tag keys, linked AWS accounts); scope with a non-AWS connection's integration_id to get that provider's vocabularies instead (the backend follows the integration's provider). A one-shot alternative to calling get_available_services + get_available_tag_keys + get_available_linked_accounts separately — use it to populate every filter before querying. limit caps each list independently. Use response_format="concise" (default) or "detailed". Read-only. Example: {} returns the full AWS services / tag-keys / linked-accounts vocabulary for the org.

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": "get_metadata"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoMax items to return in the list (default: no cap beyond the truncation guard).
integration_idNoScope to one or more provider connections (integration id). Omit for all connections.
response_formatNoconcise = key fields only (default, lower token cost); detailed = the full parsed payload.concise

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/5.0
Behavior4/5

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

Annotations only declare readOnlyHint and openWorldHint, but the description adds real behavioral context beyond them: it defaults to the AWS vocabularies, follows the provider of a given integration_id, and `limit` caps each list independently rather than the total. It stops short of noting cost, caching, or truncation-guard behavior, so it is strong but not exhaustive.

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?

Front-loaded with what the tool returns, then defaults, then the sibling-alternative, then parameter notes, then an example. It is dense but almost every clause carries information; the sentence is long and could be split for easier scanning, which costs it a point.

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

Completeness4/5

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

With no output schema, the description compensates by naming the returned fields and the sub-account object shape plus the example `{}` call result, which is enough to call it correctly. It could say more about list ordering, truncation behavior when the cap is hit, or what changes between concise and detailed payloads.

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 already 100%, so the baseline is 3; the description still adds interpretation, clarifying that integration_id switches the entire provider vocabulary (not just a filter), that limit applies per-list, and that concise is the default lower-token format. The added meaning is genuine rather than a restatement of the schema.

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?

States a specific verb and resource ('Get all the cost-query filter vocabularies') and enumerates exactly what is returned: service codes, tag keys, and sub-accounts with the { accountId, accountName } shape. It also names the three sibling tools it collapses, so an agent can distinguish it without opening any schema.

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?

Gives explicit routing guidance: it is a one-shot alternative to get_available_services + get_available_tag_keys + get_available_linked_accounts, and should be used 'to populate every filter before querying'. The alternative and the selecting condition are both named, leaving nothing to inference.

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