Skip to main content
Glama

List metrics

list_metrics
Read-onlyIdempotent

The project's metrics: each one's name, label and what it computes (sum of orders.total_amount where orders.status in paid, shipped), and the date column it goes by.

    They come from the project's metrics file, or, when it has none, are
    the ones the model implies (a sum per measure column, a count per
    fact). `metric_values` gives their known values over generated data.
    

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

Input Schema

NameRequiredDescriptionDefault
project_idYes

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, closed-world behavior, so the safety profile is covered. The description adds genuinely non-obvious behavioral context: metrics are read from the project's metrics file, and when none exists the tool falls back to model-implied metrics (a sum per measure column, a count per fact). That fallback rule cannot be derived from annotations or schema.

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?

Front-loaded with what the tool returns, followed by provenance and the sibling pointer; the inline expression example earns its space by making the metric format concrete. Slightly awkward line breaks and a trailing fragment, but no filler sentences.

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 not be documented, yet the description usefully summarizes them anyway. It covers provenance and the sibling relationship; it omits ordering/pagination or whether metrics are guaranteed non-empty, which are minor for a single-project list tool with a defined output schema.

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?

There is a single required parameter, project_id, whose schema description coverage is 0% and which the description never mentions. The tool is simple enough that the parameter is largely self-explanatory, but the description could have clarified scoping (e.g., project_id is the only selector, no filtering).

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 the resource (the project's metrics) and enumerates what each entry carries: name, label, computed expression with a concrete example, and the date column it uses. That is far more specific than the title, though the listing verb itself is only implied rather than stated.

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?

It implicitly routes value lookups to metric_values ('metric_values gives their known values over generated data'), which is useful context. However, it gives no explicit guidance on when to call this versus check_metrics, get_metrics_guide, or save_metrics, so the when/when-not decision is left to inference.

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