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. 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). EXAMPLE: "Where is environment used?" → { id: "label_…" }

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).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.8/5.0
Behavior5/5

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

Annotations already declare this is a safe read, but the description adds material behavioral facts: hits are static JSON/CEL scans of specific fields rather than live BigQuery, an empty result is success/safe-to-delete, and results are capped at 100 with a truncated flag.

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 and scoping are front-loaded, and every clause carries information (semantics, caveats, cap). It is dense with em-dash asides rather than wasteful, though slightly packed for a single paragraph.

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?

No output schema exists, yet the description pre-empts the questions an agent would have about results: what empty means, what is scanned, and the truncation behavior. Nothing needed to call it correctly or interpret the response 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% and the schema already documents the id-wins rule, but the description adds non-schema meaning: 'Native cos_* names work with name alone,' clarifying the name parameter's accepted domain.

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 ('List stored objects that reference a label dimension column') and enumerates the object types, so an agent distinguishes it from list_label_dimensions (which returns dimensions, not usages) 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 Guidelines5/5

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

Explicitly frames the use case ('before rename or delete') and names the complementary tool to source ids from ('Pass id (from list_label_dimensions)'). The condition that selects the parameter path is spelled out, 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