Skip to main content
Glama

Track a metric

configure_metric
Idempotent

Start, change or stop tracking a metric's value over time, so Maplith can tell you when the number moves. Values are recorded per calendar period where the data carries a date, otherwise one per scan; only aggregates are kept, and nothing is recorded until your human asks. Set threshold and direction to be told when it crosses a line. Pass tracked false to stop; recorded values stay. get_metric reads the series. Details: maplith://docs/mcp. Needs: an autonomous key.

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": {
      "name": "<name>",
      "tracked": "<tracked>"
    },
    "name": "configure_metric"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYesThe metric name, as get_metric lists it.
trackedYesRecord this number from the next scan on, or stop.
directionNoWhich way is bad: 'up' rising, 'down' falling.
thresholdNoThe line the value should not cross, for the kind of figure the metric gives now (a period's value, or one number overall).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / threshold / description
      Previous value: -"The line the value should not cross, drawn for the kind of figure the metric gives now (a period's value, or one number for the whole history)."New value: +"The line the value should not cross, for the kind of figure the metric gives now (a period's value, or one number overall)."
  2. Changed1 schema field changed
    • changedInput schema / properties / name / description
      Previous value: -"The metric name, as list_metrics gives it."New value: +"The metric name, as get_metric lists it."
  3. Added

TDQS

A4.6/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=false, idempotentHint=true and destructiveHint=false, but the description adds genuinely new behavior: aggregation granularity (per calendar period when dated, otherwise per scan), that only aggregates are retained, that stopping preserves recorded values, and that recording is gated on human consent. The only notable omission is what the call returns on success.

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 the core action, then consequences, then the alternative tool, then prerequisites and a docs pointer. Dense but nearly every clause carries information; the period-vs-scan sentence is packed and reads a bit run-on, and the docs URL is a minor low-value addition.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a four-parameter mutation tool with no output schema, the description covers consent gating, data granularity, retention on stop, alerting semantics, sibling routing, auth requirements and a docs pointer. An agent has everything needed to decide and call correctly.

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?

Schema coverage is 100%, so the baseline is 3, but the description adds meaning the schema does not: threshold is relative to the kind of figure the metric currently yields (a period value vs. one overall number), and tracked=false has a stated retention side effect. Direction and name are essentially restated from the schema, so it is an increment rather than a full override.

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 set (start/change/stop) applied to a specific resource (a metric's value over time), plus the effect (Maplith can report when the number moves). It also distinguishes itself from get_metric, which 'reads the series', so an agent can separate the write path from the read path without opening either schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Explicit conditions are given: pass tracked=false to stop, get_metric to read, threshold+direction to be alerted on crossings, and 'nothing is recorded until your human asks' as a consent precondition. It also states the prerequisite 'Needs: an autonomous key', which selects the correct auth context before calling.

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