Skip to main content
Glama

Costory: Your Finops MCP

list_dimension_candidates

Read-only

List native billing label keys that can be imported as label dimensions (not virtual dimensions). Use when the user asks which billing keys can be imported as label dimensions. Returns compact rows: key, ingested, imported, providers, numberValues, totalCostKeyPresent, proportionKeyPresent, costPercentageChange, topValues (top 8, Others omitted). Default drops keys already used in a published label (includeImported: true to keep them). Filter with query (substring on key / top values / providers), minCostPresent, sort (cost_desc default | cost_asc | coverage_desc | name_asc), limit (default 25, cap 50), offset. No suggestion engine — pick merges and value maps from topValues yourself. To add or change labels, call publish_label_dimensions once with an operations array (add / update / delete by id). The server merges them onto all existing label dimensions — do not resend the full list. Publishing takes about 10 minutes to show up in Explorer. Preview with dryRun: true (default). Discovery and preview do not authorize publishing. Show the proposed changes and obtain explicit user approval before sending dryRun: false and confirm: true. Before rename or delete, call list_label_dimension_usages. Effects: Read-only retrieval or computation; does not change saved resources or send messages. Scope: Authorized Costory workspace only. EXAMPLE: "Which env-like billing keys are not dimensions yet?" → { query: "env" }

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_dimension_candidates"
  }
}

Input Schema

NameRequiredDescriptionDefault
slugNoOrganization slug. Omit to auto-detect from your account (fails if you belong to multiple orgs).
sortNoSort order (default cost_desc).cost_desc
limitNoMax rows to return (default 25, cap 50).
queryNoSubstring filter on key, top values, or providers.
offsetNoNumber of rows to skip.
contextNoOptional context used only for analytics; it does not affect tool execution. Omit it by default. Do not include conversation text, personal information, or workspace data.
llm_modelNoThe model identifier you are running as, for example "claude-opus-4-8" or "gpt-5.2". Pass "unknown" if you are not certain. Recorded for the server developer's analytics.
minCostPresentNoMinimum totalCostKeyPresent.
conversation_idNoThe conversation_id this server returned earlier in this conversation, unchanged, including after later user messages. Omit it if you have none. Recorded for the server developer's analytics.
includeImportedNoWhen false (default), drop keys already used in a published label.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedInput schema / properties / context / description
      Previous value: -"A few words on why you are calling this tool, for the server developer's analytics. Describe people and things by role, such as \"a customer\". Do not quote the user or include names, emails, or other personal details."New value: +"Optional context used only for analytics; it does not affect tool execution. Omit it by default. Do not include conversation text, personal information, or workspace data."
    • changedInput schema / required
      Previous value: -[
      -  "context"
      -]New value: +[]
  2. Changed2 schema fields changed
    • changedInput schema / properties / context / description
      Previous value: -"Explain in 15-25 words, in third person, why this tool is called and how it supports the user's goal. For analytics only. You MUST describe only the abstract purpose of the tool call. NEVER include, repeat, paraphrase, or infer personal, sensitive, or identifying information from the user request or tool results, including names, emails, phone numbers, IPs, IDs, or credentials. You MUST generalize specific entities into roles such as \"a user\", \"the customer\", or \"an account\". Example: \"Retrieving a customer's recent orders to investigate a billing issue and help support determine the appropriate resolution.\""New value: +"A few words on why you are calling this tool, for the server developer's analytics. Describe people and things by role, such as \"a customer\". Do not quote the user or include names, emails, or other personal details."
    • changedInput schema / required
      Previous value: -[
      -  "context",
      -  "llm_model"
      -]New value: +[
      +  "context"
      +]
  3. Changed4 schema fields changed
    • addedInput schema / properties / context
      Added value: +{
      +  "description": "Explain in 15-25 words, in third person, why this tool is called and how it supports the user's goal. For analytics only. You MUST describe only the abstract purpose of the tool call. NEVER include, repeat, paraphrase, or infer personal, sensitive, or identifying information from the user request or tool results, including names, emails, phone numbers, IPs, IDs, or credentials. You MUST generalize specific entities into roles such as \"a user\", \"the customer\", or \"an account\". Example: \"Retrieving a customer's recent orders to investigate a billing issue and help support determine the appropriate resolution.\"",
      +  "type": "string"
      +}
    • addedInput schema / properties / conversation_id
      Added value: +{
      +  "description": "The conversation_id this server returned earlier in this conversation, unchanged, including after later user messages. Omit it if you have none. Recorded for the server developer's analytics.",
      +  "type": "string"
      +}
    • addedInput schema / properties / llm_model
      Added value: +{
      +  "description": "The model identifier you are running as, for example \"claude-opus-4-8\" or \"gpt-5.2\". Pass \"unknown\" if you are not certain. Recorded for the server developer's analytics.",
      +  "type": "string"
      +}
    • addedInput schema / required
      Added value: +[
      +  "context",
      +  "llm_model"
      +]
  4. Added

TDQS

A4.6/5.0
Behavior5/5

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

Annotations already declare the read-only, closed-world, non-destructive profile and the description reinforces it ('Effects: Read-only retrieval or computation'). Beyond that it discloses non-obvious traits: the default drops already-imported keys, rows are compact and truncate topValues to 8, publishing latency is ~10 minutes, discovery/preview do not authorize publishing, and there is no suggestion engine.

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?

Dense but front-loaded: purpose first, then return shape, then filtering, then the publish workflow and safety gate. Some redundancy with the schema (re-listing sort order, limit default 25/cap 50) and the analytics-param boilerplate is boilerplate, but nearly every sentence carries operational weight.

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?

With ten parameters and no output schema, the description compensates by enumerating the returned row fields and noting truncation behavior, and it supplies the multi-step publish/approve workflow an agent otherwise could not infer. Nothing material for correct invocation is missing.

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

Parameters3/5

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

Schema coverage is 100%, so all ten parameters are already documented. The description's parameter restatements (sort enum, limit default/cap, query substring, includeImported default) largely duplicate the schema rather than adding syntax or format detail; the genuinely new information ('top 8, Others omitted') concerns return values, not inputs.

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 plus an explicit negative scope: 'List native billing label keys that can be imported as label dimensions (not virtual dimensions).' That single clause separates it from list_label_dimensions (already-published labels, via the includeImported default) and from the virtual-dimension siblings without the agent needing to open 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 a direct when-to-use trigger ('Use when the user asks which billing keys can be imported as label dimensions') and then routes the surrounding workflow: publish_label_dimensions for changes, list_label_dimension_usages before rename/delete, and an explicit approval gate before dryRun:false. Alternatives and preconditions are named rather than implied.

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