Skip to main content
Glama

Costory: Your Finops MCP

list_label_dimension_usages

Read-only

List stored objects that reference a label dimension column (dashboards, reports, alerts, events, virtual dimensions, budgets) before rename or delete. Use when the user asks where a label dimension is used before renaming or deleting it. Pass id (from list_label_dimensions) and/or name; id wins when both are set. Native cos_* names work with name alone. Hits are JSON/CEL scans of groupBy, filterCel, conditionsCel, and conditionCel — not live BigQuery. Empty usages is success (safe to delete from a reference point of view). Capped at 100 hits (truncated: true when more). Effects: Read-only retrieval or computation; does not change saved resources or send messages. Scope: Authorized Costory workspace only. EXAMPLE: "Where is environment used?" → { id: "label_…" }

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

Input Schema

NameRequiredDescriptionDefault
idNoEngineered label id from list_label_dimensions.
nameNoColumn name (LabelDimension.name). At least one of id / name is required; id wins when both are set.
slugNoOrganization slug. Omit to auto-detect from your account (fails if you belong to multiple orgs).
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.
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.

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.5/5.0
Behavior5/5

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

Annotations already declare readOnlyHint=true and destructiveHint=false, but the description adds substantive behavior beyond them: hits are static JSON/CEL scans, not live BigQuery queries; empty results are a success signal that deletion is reference-safe; results are capped at 100 with a truncated flag. It also clarifies that it does not change saved resources or send messages, aligning with rather than contradicting the annotation profile.

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?

Information-dense and front-loaded: purpose, trigger, parameter rule, scan semantics, empty-result meaning, and cap all appear in that order, with a concrete example at the end. Every sentence carries information, though the 'Effects: Read-only retrieval...' line largely repeats what the annotations already state.

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?

For a read-only lookup with no output schema, the description covers what is returned (hits, truncated flag), what is not covered (live data), and how to interpret zero results. It leaves the per-hit field shape and the slug auto-detection behavior to the schema, which is a minor gap rather than a blocking one.

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%, so the schema already documents all six parameters and the baseline would be 3. The description still adds meaning beyond the schema by stating the precedence rule ('id wins when both are set'), the source of the id (list_label_dimensions), and that native cos_* names work with name alone.

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?

Opens with a specific verb+resource ('List stored objects that reference a label dimension column') and enumerates the object types scanned (dashboards, reports, alerts, events, virtual dimensions, budgets). This distinguishes it clearly from siblings like list_label_dimensions, which enumerates dimensions rather than their usages.

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?

States the trigger explicitly: 'Use when the user asks where a label dimension is used before renaming or deleting it,' and routes the agent to list_label_dimensions as the source of the id. No explicit when-not-to-use case or named alternative for the reverse lookup, so it stops short of a 5.

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