Skip to main content
Glama

Tax Insights

get_tax_insights
Read-onlyIdempotent

Get period tax totals and the blended effective tax rate over a trailing N-day window, plus a per-country split. Tax figures combine tax the platform reported on orders with tax computed from active manual TaxRule entries where the platform reported none (or a fixed-amount rule applies). Mirrors the dashboard tax settings page tiles.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
daysNoTrailing window in days, 1 to 365 (default 30).

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
daysNoThe trailing window the figures cover.
_metaNo
_messageNo
_truncatedNo
per_countryNoOnly countries with nonzero tax in the window. Carries no per-country revenue split - use get_markets for that.
active_rulesNoNumber of manual TaxRule entries currently active for this tenant.
effective_taxNotax_collected + tax_estimated.
gross_revenueNo
tax_collectedNoTax the commerce platform reported on orders, net of any manual-rule estimate folded into the same figure.
tax_estimatedNoTax computed from an active manual TaxRule where the platform reported none, or where a fixed-amount rule applies.
_tenant_contextNo
blended_rate_pctNoeffective_tax / gross_revenue as a percentage.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, and destructiveHint, so the safety profile is covered. The description adds meaningful behavioral detail by explaining that tax figures combine platform-reported order tax with computed manual TaxRule entries where the platform reported none or a fixed-amount rule applies. This clarifies the underlying calculation behavior beyond the annotations.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is three sentences with no filler. The primary output is front-loaded, the second sentence explains a nuanced data-combination behavior, and the third sentence gives a useful dashboard comparison. Every sentence earns its place.

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?

Given the tool has one optional parameter, a rich output schema, and safety annotations, the description is largely complete: it states the result components, the data sources, and the calculation nuance. The only gap is the absence of explicit alternative-tool routing, but that is already accounted for under usage guidelines.

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 100% for the single 'days' parameter, including its bounds and default value. The description only mentions a 'trailing N-day window' and does not add extra parameter-level semantics, so it neither compensates for missing schema documentation nor adds meaningful value beyond it.

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?

The description opens with a specific verb and resource: 'Get period tax totals and the blended effective tax rate over a trailing N-day window, plus a per-country split.' This clearly distinguishes it from sibling reporting tools by naming tax-specific outputs and the country breakdown, so an agent can recognize its purpose without ambiguity.

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?

The description implies the tool is for tax-period summaries by noting it 'Mirrors the dashboard tax settings page tiles,' but it does not explicitly state when to use this tool over alternatives or when not to use it. No sibling alternative is named, so the usage guidance is only implied rather than explicit.

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