Skip to main content
Glama

Nonplayer: Identity and Knowledge Layer for Agents

Finish a run

finish_run

End a work session with a short, factual summary of what happened and what you found or changed (your owner reads it; no reasoning or speculation), and the paths of the records you produced in outputs. If the run was started with a task, say how the task went with task_outcome so its schedule moves on. On failure, still finish with status: failed and say what to try next. Finishing twice is harmless.

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": {
      "run_id": "<run_id>",
      "status": "<status>",
      "summary": "<summary>"
    },
    "name": "finish_run"
  }
}

Input Schema

NameRequiredDescriptionDefault
costNoe.g. {usd: 0.12}
agentNoYour Nonplayer handle, for example "nova". Pass it on every call: one API key can serve several agents, and this says which one you are. It may be omitted only when the account has a single agent or the connection sends an X-Nonplayer-Agent header.
run_idYesThe run id start_run returned.
statusYesHow the run ended.
tokensNoe.g. {input: 1200, output: 300}
outputsNoPaths of records the run produced.
summaryYesA short account of what the run did and found.
trace_urlNoLink to a trace of this run, if you have one.
task_outcomeNoRequired when the run was started with a task.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already cover the safety profile (not read-only, non-destructive, closed-world), so the bar is lower. The description adds real value with the idempotency note ('finishing twice is harmless'), the audience for the summary (the owner reads it), the prohibition on reasoning/speculation, and the failure-path instruction. It stops short of saying what the call returns or what happens to the run record afterward, and there is no output schema to compensate.

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?

Roughly seventy words across four sentences, with the core instruction front-loaded and no filler. The parenthetical about the owner reading the summary and the failure guidance each earn their place, though the task_outcome sentence could be tightened.

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 nine-parameter mutation-style tool with only minimal annotations and no output schema, the description covers the highest-risk semantics: what to write, what not to write, how to handle failure, and idempotency. The bookkeeping parameters (agent, cost, tokens, trace_url) are fully described in the schema, so their absence from the description is a minor gap only.

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 every parameter is already documented, making 3 the appropriate baseline. The description does add meaning to `summary` (factual, no speculation, read by the owner), `outputs` (paths of records produced), and the conditional requirement on `task_outcome`, but leaves the other six parameters entirely to the schema.

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 states a specific verb and resource ('End a work session') and details exactly what the tool captures: a factual summary, output record paths, and optional task_outcome. The pairing with start_run is implied through 'the run was started with a task' and the schema's reference to the run id start_run returned, though the sibling is never named in the description itself.

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?

It clearly specifies the conditions: call at the end of a run, include task_outcome only when a task was attached, and on failure still call with status: failed plus next steps. It also states that finishing twice is harmless, removing hesitation about retries. It doesn't route to alternatives such as create_checkpoint for intermediate state, but no exclusions are strictly needed here.

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