Skip to main content
Glama

Guide to writing metrics

get_metrics_guide
Read-onlyIdempotent

How to write a metrics file, as markdown: model2data's open metrics spec (https://github.com/JB-Analytica/model2data/blob/main/model2data/spec/metrics/README.md), with examples, then what the studio adds. Read it after the model is written and before writing metrics. Needs no API key.

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_metrics_guide"
  }
}

Input Schema

NameRequiredDescriptionDefault

No arguments

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.9/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, and openWorldHint=false, so safety is covered. The description adds two genuinely new facts: the result is markdown documentation and no API key is required. It does not say how large the guide is or whether it covers every field of the metrics spec.

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?

Three short sentences: what it is, what it contains, and when to read it. The long spec URL is functional rather than filler, and the key instruction (read before writing metrics) is placed where the agent will see it.

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?

With an output schema present, the description need not explain return values, and it still flags the markdown format and the no-API-key property. For a single-purpose zero-argument guide tool this is close to sufficient, only missing a hint about whether the guide covers all metric fields.

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?

The tool takes zero parameters, so there is nothing for the description to disambiguate and the baseline applies. The absence of arguments is consistent with a static documentation fetch.

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 a specific resource (the metrics-file authoring guide) and its form (markdown, open metrics spec plus what the studio adds). It is clearly distinct from get_model_guide or get_dashboard_guide by subject matter, though it never names those siblings explicitly.

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?

"Read it after the model is written and before writing metrics" gives a concrete point in the workflow to invoke it. It stops short of naming alternatives such as check_metrics or save_metrics, so the agent must infer that this is the pre-write reading step rather than the validation step.

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