Skip to main content
Glama

Save the metrics file

save_metrics
DestructiveIdempotent

Replace a project's metrics file with text, keeping everything else.

    Checked first against the project's model; a file with errors is not
    saved, and the errors come back instead. Says which metrics were added
    and removed. Next: `metric_values` to see their numbers, then the
    dashboard tools. Needs a key with save access.
    

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>",
      "text": "<text>"
    },
    "name": "save_metrics"
  }
}

Input Schema

NameRequiredDescriptionDefault
textYes
project_idYes

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior5/5

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

Annotations only say destructive/idempotent/not-read-only; the description adds far more: the file is validated against the project's model first, an invalid file is rejected and errors are returned instead of saving, and the response reports which metrics were added and removed. It also discloses a prerequisite ('Needs a key with save access'), which is real behavioral context an agent cannot get from the annotations.

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 core action and its full-replacement semantics are front-loaded in the first sentence, and subsequent sentences each add validation, output, workflow, or auth information. The trailing 'Next:' chain is slightly sprawling but still earns its space.

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 two-parameter destructive mutation this is close to complete: validation behavior, rejection-on-error, auth requirement, and returned add/remove info are all covered, and an output schema exists so return format need not be spelled out. The remaining gap is the undocumented project_id semantics and mild ambiguity about what 'everything else' preserves (other files vs. other projects).

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% for both parameters, so the description must carry the weight. It explains `text` well as the full replacement content of the metrics file, but `project_id` is only implied by 'a project's' with no added semantics about format or lookup. Partial compensation justifies a middle score.

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 (Replace) and resource (a project's metrics file) plus the crucial scope detail that only the file content is swapped and 'everything else' stays. An agent can distinguish this from save_model or save_dashboard without opening any 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?

Gives a clear follow-on workflow ('Next: metric_values to see their numbers, then the dashboard tools'), which tells the agent where this sits in a sequence. It does not explicitly state when to prefer this over confusable siblings like save_model or when not to call it, so it falls short of full when/when-not guidance.

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