Skip to main content
Glama

Record outcome

record_outcome

Record an interaction outcome for an agent. kind: success | delivered | dispute_won | failure | undelivered | dispute_lost | timeout | security_incident (security incidents carry a 3x penalty).

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_id": "<agent_id>",
      "kind": "<kind>"
    },
    "name": "record_outcome"
  }
}

Input Schema

NameRequiredDescriptionDefault
kindYessuccess, delivered, dispute_won, failure, undelivered, dispute_lost, timeout or security_incident.
noteNoOptional. A short note.
weightNoOptional. Weight of this outcome. Default 1.
agent_idYesId of the agent.
counterpartyNoOptional. Id of the other party.

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed5 schema fields changed
    • addedInput schema / properties / agent_id / description
      Added value: +"Id of the agent."
    • addedInput schema / properties / counterparty / description
      Added value: +"Optional. Id of the other party."
    • addedInput schema / properties / kind / description
      Added value: +"success, delivered, dispute_won, failure, undelivered, dispute_lost, timeout or security_incident."
    • addedInput schema / properties / note / description
      Added value: +"Optional. A short note."
    • addedInput schema / properties / weight / description
      Added value: +"Optional. Weight of this outcome. Default 1."
  2. First observed

TDQS

B3.2/5.0
Behavior3/5

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

Annotations already declare readOnly=false, idempotent=false and destructive=false, so the safety profile is covered. The description adds one genuinely useful behavioral fact — security incidents carry a 3x penalty — signaling that recorded outcomes feed scoring. It does not warn that the write is non-idempotent (repeat records presumably each count) or describe any error/append semantics.

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?

Two compact sentences with the resource and the choice set front-loaded; nothing is padded. The kind enumeration is partially redundant with the schema enum, but it is short and aids quick scanning.

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 simple write tool with a full-coverage 5-parameter schema and an output schema, purpose plus the kind set and penalty consequence is nearly everything an agent needs. Remaining gaps are minor: no statement of how the record affects agent score or what happens on duplicate submissions.

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 coverage is 100%, so all five parameters (agent_id, kind, note, counterparty, weight) are already documented in the schema. The description restates the kind enumeration and adds the penalty weighting for one enum value, but says nothing about how weight interacts with the penalty or what counterparty implies.

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?

States a specific verb+resource ('Record an interaction outcome for an agent') and enumerates the valid outcome kinds, so an agent knows exactly what the tool does. It does not distinguish itself from siblings like attest or score_agent, which keeps it from a 5.

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

Usage Guidelines2/5

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

The description implies the context (recording an interaction outcome) but gives no when-to-use/when-not guidance and never references the sibling tools such as attest, score_agent, or history that could be confused with it. The agent must infer the selection rules from the name alone.

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.