Skip to main content
Glama

One defined metric

get_metric
Read-onlyIdempotent

A financial metric computed by Aggregate with a fixed definition, never estimated: value, basis, as-of time, formula, included and excluded accounts, stale sources, items pending review and how many AI-added entries it includes. It matches what the user sees in the app; a sum of listed rows may not.

Input Schema

NameRequiredDescriptionDefault
toNoPeriod end (YYYY-MM-DD).
fromNoPeriod start (YYYY-MM-DD).
basisNo
metricYescash: Money in bank, processor and cash-on-hand accounts marked as cash, in home currency. card_balances: What is owed on credit cards right now. net_cash: Cash minus card balances. gross_burn: Average monthly money out over the last 3 full months, excluding transfers between own accounts. net_burn: Average monthly money out minus money in over the last 3 full months. runway: Months until cash runs out at the current net burn. "not_burning" when cash is growing. mrr: Monthly recurring revenue from active subscriptions (Stripe definition). arr: MRR × 12. revenue: Revenue in the period, cash or accrual basis, gross of processor fees (fees are a separate expense, "Processor fees"). Payouts and transfers are not revenue. query_transactions rows show processor charges net of fees, so summing them gives less. ar_open: Total unpaid on invoices you sent. ar_overdue: Unpaid on invoices past their due date. ap_due: Unpaid bills due in the period. payroll_cost: Gross pay plus employer taxes and benefits in the period. recurring_spend: Monthly total of detected recurring charges. owner_balance: What the company owes its owners (+) or they owe it (−): loans, unreimbursed expenses, unspecified owner money. intercompany_balance: What your companies owe each other. fully_diluted: Fully diluted shares and ownership. data_health: Things needing a look, counted and worded exactly as the Workspace shows them: items to review, balances that don't match, transfers not seen arriving, connections not syncing, missing months. 0 means all reconciled; checks shows how many pass. mrr_churn_rate: Last complete month: churned plus downgraded MRR as a fraction of MRR at its start, per customer. net_new_mrr: Last complete month: new + expansion + reactivation − contraction − churned MRR.
companyNoCompany name or id, "Personal", or "all". Omit for every company this connection can see.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.5/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and openWorldHint=false, so safety is covered. The description adds real value beyond that: it discloses that values are never estimated, that they match the in-app view, and that results may include stale sources, pending-review items and AI-added entries — data-quality traits an agent could not infer from annotations.

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?

Two sentences, front-loaded with the core definition and then the caveat about row sums. Dense but every clause carries substance; the enumerated result fields are somewhat list-like but not redundant.

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 correctly enumerates the returned fields an agent needs to know about. It is close to complete for a single read-only retrieval tool; the main omission is the default time window when from/to are omitted, which the description leaves to the schema.

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 description coverage is 80%, and the schema itself carries very rich per-enum documentation for metric and basis, so the schema does the heavy lifting. The description adds no parameter-specific syntax or default behavior (e.g. what omitting from/to means), so the baseline 3 holds.

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 defines the resource precisely — a fixed-definition Aggregate-computed metric returned with value, basis, as-of time, formula, included/excluded accounts, stale sources and review counts. It distinguishes the result from a naive sum of transaction rows. It does not, however, name which sibling to use instead (e.g. query_transactions) for the underlying rows.

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

Usage Guidelines2/5

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

There is no explicit when-to-use or when-not-to-use guidance, and no alternative tool is named. The only usage-adjacent statement is the warning that a sum of listed rows may not match, which is a caveat rather than routing guidance.

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.