Skip to main content
Glama

Check a metrics file

check_metrics
Read-onlyIdempotent

Check a metrics file with the studio, without saving it, against a saved project's model (project_id) or a model's text (model_text). Needs no API key with model_text.

    Errors say their line and column; fix them and check again before
    `save_metrics`. A file without errors lists the metrics it defines.
    

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "text": "<text>"
    },
    "name": "check_metrics"
  }
}

Input Schema

NameRequiredDescriptionDefault
textYes
model_textNo
project_idNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already cover read-only, idempotent, and closed-world, so the description correctly spends its words elsewhere: it discloses that nothing is persisted, that errors carry line and column, and that a clean run returns the defined metrics. That is real added behavior. It only omits what happens if both model inputs are omitted or invalid.

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?

Three short sentences, front-loaded with the purpose and with zero filler; the workflow note and error behavior each earn their place. Minor awkwardness from the line-broken phrasing, but nothing is wasted.

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?

An output schema exists, so return values need no explanation, and the description still briefly characterizes both outcomes (errors with positions, or a list of metrics). For a three-parameter validation tool the main residual gap is the unstated interaction between project_id and model_text.

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 0%, so the description must carry the load, and it explains model_text and project_id by tying them to 'a model's text' and 'a saved project's model'. The required `text` parameter is never explicitly defined as the metrics file content, and mutual exclusivity/precedence between project_id and model_text is left unstated.

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 ('Check a metrics file') plus the crucial scope qualifier 'without saving it', which distinguishes it directly from save_metrics. It also names the two validation bases (project_id model vs. model_text), so an agent knows exactly what operation this is.

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?

Gives clear operating context: check now, fix reported errors, then call save_metrics — establishing a workflow order against a named sibling. It also flags that no API key is needed when using model_text, a useful precondition. It stops short of stating what happens when neither model_text nor project_id is supplied, or how to choose 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