Skip to main content
Glama

Metadata MCP Connector

Query Account Analytics

query_metadata_analytics_account
Read-only

Read a periodically refreshed summary of the authenticated account's firmographics and recent campaign history from the Metadata analytics warehouse. It is not a live platform-state query. The account ID is resolved from the credential and cannot be supplied by the caller; cross-account queries are refused. Returns a JSON envelope with status, text_reply, rows, SQL, confidence, applied_filters, and timing. LOW confidence with identity_only_rows means no substantive attributes were found; literal_only_result is not a warehouse result.

Input Schema

NameRequiredDescriptionDefault
questionYesNatural-language question about the current account.

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / question / description
      Previous value: -"Natural-language question about the caller's account."New value: +"Natural-language question about the current account."
  2. First observed

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnly, non-destructive, closed-world), and the description goes well beyond them: periodic-refresh staleness, credential-derived account ID, refusal of cross-account queries, and interpretation rules for LOW confidence / identity_only_rows / literal_only_result. That confidence-semantics guidance is genuinely non-obvious context. Minor deduction because the return-envelope listing duplicates what the output schema likely already declares.

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 the core capability and the freshness caveat, then constraints, then return shape. Every sentence carries information, though terms like 'identity_only_rows' and 'literal_only_result' are dropped without definition and read as internal jargon.

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 single-parameter read tool with annotations and an output schema, this covers freshness, authorization scope, refusal behavior, and result-quality interpretation — the things an agent actually needs to act on results. The gap is routing guidance relative to the many overlapping account-analytics siblings.

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% for the single 'question' parameter, so the schema carries the specification and baseline 3 applies. The description adds one real clarification — that the account ID is resolved from the credential and is not caller-supplied — which helps the agent understand why no account parameter exists, but says nothing about question formatting or scoping beyond 'natural-language'.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description names a specific verb and resource ('Read a periodically refreshed summary of the authenticated account's firmographics and recent campaign history') and explicitly demarcates it from a live platform-state query. It does not name the closest sibling (query_metadata_analytics_benchmarks) or other account-stats tools, so an agent must still infer the boundary from the data source rather than from an explicit contrast.

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

Usage Guidelines3/5

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

It gives one useful usage constraint — this is a warehouse snapshot, not live state — and states that cross-account queries are refused. However it never says when to prefer it over account_level_stats, account_funnel_reports, get_account_summary_insights, or query_metadata_analytics_benchmarks, all of which plausibly overlap, so tool selection is left 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