Skip to main content
Glama

Read the metrics file

get_metrics
Read-onlyIdempotent

The project's metrics file, exactly as stored (model2data's open metrics spec, YAML): edit it and pass it back to save_metrics to change the metrics. Read-only. When the project has no metrics file yet, says so: its metrics are then the ones the model implies, which list_metrics shows.

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": {
      "project_id": "<project_id>"
    },
    "name": "get_metrics"
  }
}

Input Schema

NameRequiredDescriptionDefault
project_idYes

Output Schema

NameRequiredDescriptionDefault
resultYes

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 cover the read-only, idempotent, non-open-world profile, and the description adds genuinely new behavior: the file is returned verbatim in YAML, and a missing metrics file is reported rather than erroring, with the implied metrics discoverable via list_metrics. That empty-state disclosure is the key non-obvious trait an agent needs.

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

Conciseness3/5

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

The core statement is front-loaded and the round-trip instruction is useful, but the parenthetical spec attribution and the trailing empty-state clause make it longer than needed. Some wording earns its place; the format justification could be tightened.

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, return structure need not be explained, yet the description still covers content format and the no-file case. For a single-parameter read tool this is nearly complete, with only parameter-level detail left unaddressed.

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% and the single parameter carries only a title, but project_id is self-explanatory from its name and the description's repeated 'project' framing. The description adds no explicit meaning (e.g., ID format or scope) beyond the schema, so this is minimum viable.

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 names a specific resource (the project's metrics file) and specifies the format ('model2data's open metrics spec, YAML') and fidelity ('exactly as stored'). It is clearly distinguishable from save_metrics (write) and list_metrics (implied metrics), so an agent can select it without opening the schema.

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?

It states an explicit workflow—edit the returned YAML and pass it back to save_metrics—and routes the empty-project case to list_metrics. It does not address edge cases such as validating a file before saving (where check_metrics or get_metrics_guide might apply), so it stops short of full when/when-not coverage.

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