Skip to main content
Glama

Record how a routed request turned out

arobi_record_route_outcome

Records a routed request's outcome—quality score or success flag—plus optional candidate comparison to teach learned escalation, seals a ROUTE_OUTCOME record, and returns routing stats.

Instructions

Teach learned escalation: record the outcome of a request routed by arobi_classify_and_route in this run (quality 0 to 1, or ok), and optionally how it compared with another candidate on the same request. Uses that decision's content-free features, seals a ROUTE_OUTCOME record, and returns the run's routing stats.

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": {
      "routing_record_hash": "<routing_record_hash>"
    },
    "name": "arobi_record_route_outcome"
  }
}

Input Schema

NameRequiredDescriptionDefault
okNoInstead of quality: true for a successful answer (1), false for a failed one (0).
recordNoDefault true. Set false to learn from it without sealing a chain record.
qualityNoHow good the answer was, 0 to 1.
candidate_idNoThe candidate that answered; default the one that decision selected.
compared_withNoOptional: a comparison with another capable candidate of the same decision on this request.
routing_record_hashYesrecord_hash of the ROUTING_DECISION record the outcome is about.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv1.3.0

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare the write (readOnlyHint=false, idempotentHint=false, destructiveHint=false); the description adds real value by saying a ROUTE_OUTCOME record is sealed, that features are content-free (privacy-relevant), and that routing stats are returned. The record=false escape hatch is disclosed. Minor gap: it never notes that repeated calls are non-idempotent and will seal additional records.

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?

A single tightly packed sentence with the purpose front-loaded and no filler. It is dense to the point of being slightly hard to parse on first read, but every clause carries information.

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?

With no output schema, the description responsibly states that the run's routing stats are returned, and it covers the write-to-chain consequence and the nested comparison object. It leaves open whether the record hash is reported back and how the outcome affects future routing, which would be useful for a learning-feedback tool.

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 a bump by explaining the either/or between 'quality 0 to 1' and 'ok' and clarifying that compared_with refers to another capable candidate evaluating the same request. It doesn't restate the default candidate behavior, but the schema covers that.

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 (record the outcome) plus the resource (a request routed by arobi_classify_and_route in this run), and names the sibling that produces the routing decision. The prefix 'Teach learned escalation' frames the intent, so an agent can distinguish this follow-up feedback tool from the routing tool itself without opening the 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?

Clearly scopes usage to outcomes of requests routed in this run and ties the call to a routing_record_hash from that decision. It also explains the quality-vs-ok alternative and the optional comparison case. It stops short of stating when not to call it (e.g., when the request was never routed) or what happens if the same outcome is reported twice.

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