Skip to main content
Glama

tascan_finish_run

Finish a claimed local run (POST /runs/:run_id/finish). outcome='completed' stores document (and optional verification) as the seat's own build artifacts under EXACTLY the artifact_paths the fan-out named for this seat, hashes them into build_ref, and finishes the run -- this mints a real task_completions row and a SIGNED TASCAN RECEIPT for your work (tascan_get_receipt), the same as any other build; document is your deliverable and IS what gets hashed, so send the real content, not a summary. Zero changes to coord_fanout_settle / the barrier / the roll-up -- your completion releases the next held seat and, once every seat settles, feeds the fan-out's own synthesizer and rollup exactly like a cloud research seat's would. outcome='failed' finishes the run failed with your error text and stores nothing. Requires agent:dispatch:code. A run outside your org, or already finished, is refused (404 / the RPC's own not_live).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
errorNoRequired when outcome is failed -- why (up to 4000 chars).
run_idYesThe run ID from tascan_claim_run's response.
outcomeYes'completed' stores your document and mints a signed completion; 'failed' stores nothing.
documentNoRequired when outcome is completed. The seat's deliverable -- hashed as build_ref, stored verbatim under the seat's own artifact_paths.
instanceYesThe SAME instance string you claimed with.
verificationNoOptional second document (a short verification/self-check note) -- stored as the seat's second artifact_path when the fan-out named two.
cost_micro_usdNoOptional micro-USD cost to record against the cycle's own budget (default 0 -- a Claude Code subscription seat has no per-call API cost to report).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.6/5.0
Behavior5/5

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

Goes far beyond the annotations: it discloses that document is hashed into build_ref, that a task_completions row and a signed receipt are minted, that the completion releases the next held seat and feeds the fan-out synthesizer/rollup, and that failed runs store nothing. It also states the required permission and the 404/not_live refusal conditions, none of which are derivable from readOnlyHint/idempotentHint/destructiveHint.

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 action and endpoint, and each subsequent clause carries distinct information (storage, hashing, receipt, fan-out side effects, auth, failures). The prose is dense with run-on parentheticals and emphasis, which slightly hurts readability but wastes little.

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 mutation tool with no output schema, the description covers the side effects, the authorization requirement, the failure semantics, and points to tascan_get_receipt for the returned artifact. Nothing an agent needs to invoke it correctly appears missing.

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 baseline would be 3, but the description adds real meaning: it stresses that document IS the hashed deliverable ('send the real content, not a summary') and clarifies verification becomes the seat's second artifact_path. The cost_micro_usd default rationale is left to the schema.

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+resource ('Finish a claimed local run') plus the underlying endpoint (POST /runs/:run_id/finish), and its two outcome branches are fully spelled out. An agent can distinguish this from tascan_claim_run or tascan_heartbeat_run without opening any 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?

Gives clear context for each outcome: 'completed' stores artifacts and mints a receipt, 'failed' finishes with error text and stores nothing, and it names a prerequisite (requires agent:dispatch:code) and refusal cases (404 / not_live). It never explicitly names tascan_claim_run or heartbeat_run as the alternative operations, so the when-not guidance is inferred rather than stated.

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.