Skip to main content
Glama
Metrx MCP Server

Metrx MCP Server

by metrxbots

Record Agent Decision

metrx_record_decision
Destructive

Record an expand, re_specify, combine, or retire decision for an agent with a rationale, capturing the governing contract version and scorecard as evidence at decision time.

Instructions

Record a management decision about an agent (expand, re_specify, combine, retire) with a rationale. The record carries the governing contract version and the scorecard at decision time as evidence, and appears on the agent page. The same decision within 60 seconds is refused as a double submit; pass idempotency_key to make a retry return the first record. Use a new key for each new decision: a key reused with a different decision is refused. A retire also archives the agent in the same step (it leaves the review and the grading queue; there is no undo in the product) and needs an owner or admin: an API key with the admin scope. Requires an API key with the 'write' scope.

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": {
      "agent_key": "<agent_key>",
      "decision": "<decision>",
      "rationale": "<rationale>"
    },
    "name": "metrx_record_decision"
  }
}

Input Schema

NameRequiredDescriptionDefault
decisionYesexpand | re_specify | combine | retire.
agent_keyYesThe agent the decision is about.
rationaleYesWhy, in at least 20 characters; stored on the record and shown on the agent page.
idempotency_keyNoOptional. Retrying with the same key returns the first record instead of a second one.
combined_into_agent_idNoFor 'combine' only: the agent (row id) this one folds into.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.5.0

TDQS

A4.5/5.0
Behavior5/5

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

Goes well past the annotations, which only flag destructiveHint=true and idempotentHint=false. It discloses the 60-second double-submit refusal window, the key-reuse-with-different-decision failure mode, that retire archives the agent in the same step, that the agent leaves the review and grading queue, that there is no undo, and the required scopes ('write', plus admin for retire). The opt-in idempotency key is consistent with idempotentHint=false rather than contradicting it.

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?

Purpose is front-loaded in the first sentence, followed by evidence, idempotency, retire side effects, and auth in a logical order with no filler. It is dense and long-ish for one paragraph, with auth scope requirements appended at the end rather than grouped with the retire warning.

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 destructive mutation with no output schema, it covers side effects, irreversibility, failure conditions, and both required scopes — the things an agent most needs before calling it. The one gap is the return shape (e.g. whether a record id is returned for later reference), which is not described anywhere since no output schema exists.

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; the description earns above baseline by adding real semantics for idempotency_key (retry returns the first record, reuse with a different decision is refused) and by tying rationale to the stored evidence and agent page. combined_into_agent_id for 'combine' is left entirely to the schema, which is acceptable given the coverage but is a missed elaboration.

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 and resource (record a management decision about an agent) and enumerates the exact decision vocabulary (expand, re_specify, combine, retire), which an agent cannot infer from the name alone. It also states the record's content (rationale, contract version, scorecard) and where it surfaces (the agent page), separating it cleanly from read-side siblings like metrx_get_decision_queue or metrx_get_agent_detail.

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 concrete when-to-use context: pass idempotency_key when retrying, use a new key for each new decision, and note that retire requires owner/admin. It does not name an explicit alternative or a when-not condition (e.g. how to inspect a queued decision instead of recording one), so routing is implied rather than stated.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.