Skip to main content
Glama

How the business is doing

contractor_analytics
Read-onlyIdempotent

Revenue trend and forecast, technician performance, work by postcode, dispute themes and fleet fuel — all computed from this account own invoices, jobs, timesheets and ratings. WARNING: a forecast with basis: "insufficient_history" carries NO number; a metric with state: "unavailable" could not be read and is NOT zero; could_not_load names any section that failed. Report those as gaps, never as zeroes or empty results.

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

Input Schema

NameRequiredDescriptionDefault
window_daysNoHow far back the crew figures look. Defaults to 90.

Output Schema

NameRequiredDescriptionDefault
noteNoWhy the result was truncated, when it was.
fleetNo
revenueNo
disputesNo
headlineNo
geographyNo
truncatedNoPresent and true when the result was too large to return in full. Treat it as a partial answer.
techniciansNo
window_daysNo
could_not_loadNo
total_availableNoHow many rows existed before truncation.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior5/5

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

Beyond the read-only/idempotent annotations, the description discloses the most consequential behavioral trait: sentinel values. It explicitly says basis "insufficient_history" carries no number, state "unavailable" is not zero, and could_not_load names failed sections, then instructs that these be reported as gaps. This is exactly the kind of interpretation context annotations cannot carry.

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?

The capability statement is front-loaded and the warning follows immediately, with no filler sentences. The em-dash section list and multi-clause warning make it dense, but every clause conveys distinct information.

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, so return structure need not be spelled out; the description instead covers what the schema cannot — how to read absence and failure states. For a read-only analytics tool with one optional parameter, nothing an agent needs in order to call or interpret it correctly is missing.

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?

There is a single parameter with 100% schema coverage, including its own description, default of 90, and min/max bounds, so the schema does the heavy lifting. The description adds no extra meaning about window_days (e.g. how it affects forecast reliability), which is the baseline 3 case.

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 five concrete report areas (revenue trend/forecast, technician performance, postcode work, dispute themes, fleet fuel) and states the data provenance (invoices, jobs, timesheets, ratings), so an agent knows exactly what the tool returns. It does not explicitly contrast itself with analytics-flavored siblings like collections_trend or contact_insights, keeping it out of 5 territory.

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?

Usage is only implied: the breadth of sections signals 'use this for a whole-of-business read,' and the warning tells the agent when output should be treated as a gap. There is no explicit when-to-use versus alternatives (e.g. contractor_standing, contractor_compliance) and no stated prerequisites or exclusions.

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