Skip to main content
Glama

Quality versus cost by task type

get_task_quality
Read-only

For each task type (a tag such as pipeline=ci-review) that runs on two or more models: each model's success rate, cost per task and cost per success (failed attempts included), with a verdict: the cheaper model works as well (with the monthly saving), the current model earns its price, the cheaper one fails more, or not enough outcomes yet. Needs tagged usage with a task_id and an outcome.

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

Input Schema

NameRequiredDescriptionDefault
taskNoOnly task types whose tag value contains this text, for example ci-review.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, openWorldHint=false and destructiveHint=false, so safety is covered. The description adds behavior the annotations do not: the data prerequisite (tagged usage with task_id and outcome), the fact that cost per success includes failed attempts, and the four possible verdict outcomes including the inconclusive one. It stops short of stating the time window or units behind 'monthly saving'.

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?

One dense sentence that front-loads the scope and then enumerates outputs and verdicts, with no filler. The long parenthetical and comma-spliced verdict list make it slightly harder to scan than it could be, but nothing is 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?

For a single-parameter read-only tool with no output schema, the description effectively serves as the output contract by enumerating the reported metrics and verdict types. The remaining gap is small: the reporting period and cost currency are not stated, so the agent cannot say over what window the savings apply.

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% and the single optional parameter already carries a description and example, so the schema does the work. The description reinforces the tag format ('a tag such as pipeline=ci-review'), which is mild added meaning, but adds no matching or case-sensitivity rules. Baseline 3 applies.

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 precise verb-like scope: for each task type running on two or more models, report success rate, cost per task, cost per success and a verdict. That is clearly distinguishable from the spend-only siblings (get_spend, get_spend_summary, get_people_spend) because quality per model is the point of the tool.

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 implied by the content: use it when you want to compare model quality against cost per task type. It also gives a real precondition, 'Needs tagged usage with a task_id and an outcome', which tells the agent when the tool has nothing to report. It never names an alternative or an explicit when-not condition.

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