Skip to main content
Glama

Run a report

run_report
Read-onlyIdempotent

Run a report by key and get its columns, rows and totals. Get keys from list_reports. You can narrow it with extra filters — each is {field, operator, value|values} using a field on that report; an operator or field it does not have is REFUSED with the reason, never quietly ignored. Read the result carefully: truncated true means rows is a page and totals is over ALL row_count rows; could_not_be_read names any part that failed, and a figure there is missing, not zero. Money that calls itself income is SETTLED money — a charge that has been submitted and not settled has not arrived. Charts are on the Reports screen in Seayora, not here.

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": "run_report"
  }
}

Input Schema

NameRequiredDescriptionDefault
daysNoWindow in days — only for a fixed report that lists it (lease_expirations, maintenance).
yearNoTax year — ONLY for the fixed reports that take it (schedule_e, owner_1099). Refused on any other report.
limitNoRows to return (1-500, default 100). The totals are always over the whole report.
monthsNoWindow in months — only for a fixed report that lists it (income_expense).
reportNoThe report key from list_reports.
filtersNoExtra filters, ANDed onto the report's own. Each is {field, operator, value} or {field, operator, values}.

Output Schema

NameRequiredDescriptionDefault
noteNoWhy the result was truncated, when it was.
truncatedNoPresent and true when the result was too large to return in full. Treat it as a partial answer.
total_availableNoHow many rows existed before truncation.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Goes well beyond the readOnly/idempotent annotations: unknown filters are refused with a reason rather than silently dropped, `truncated` means rows are paged while `totals` covers all `row_count`, `could_not_be_read` marks missing figures as absent rather than zero, and income is settled money only. These are exactly the failure modes an agent would otherwise misread.

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 purpose, then guidance, then interpretation caveats, then scope boundary — a sensible order with no filler. It is dense to the point of being packed (semicolon-chained caveats), but nearly every clause 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?

An output schema exists, yet the description still resolves the ambiguous parts of the return — truncation, per-part read failures, and settlement status of income figures — which is where agents most often err. Combined with filter-refusal behavior, an agent has enough to call and interpret this correctly.

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 baseline is 3, but the description adds meaning the schema lacks: filters are ANDed onto the report's own and are rejected if the field or operator is not on that report. It also restates that totals span the whole report regardless of `limit`, reinforcing the row-cap semantics.

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 — 'Run a report by key and get its columns, rows and totals' — which tells an agent exactly what comes back. It also names `list_reports` as the source of valid keys, separating discovery from execution.

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?

Explicitly routes the agent to `list_reports` for keys and warns that chart output lives on the Reports screen rather than here, which is real when-not guidance. It does not differentiate from the many report-specific siblings (delinquency_report, maintenance_report, etc.), so an agent gets no signal on choosing between them.

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