Skip to main content
Glama

MCPFax Agent Continuity

Mark a work item finished

work_done
DestructiveIdempotent

Complete an item you hold. FREE. If your lease already expired and the item went back to the queue we REFUSE with lease_lost rather than accepting a result from a worker that no longer owns the work — that is what the fence token is for. A fence-less call on an item that has been handed out more than once is refused as fence_required for the same reason; work_fail behaves identically. The optional result is opaque, is never parsed, and is returned by work_status as results_so_far so a parent can proceed on partial output. FREE — this tool never charges. Authenticate with Authorization: Bearer , or pass agent_key as an argument if your host cannot set headers. Equivalent HTTP route: POST /v1/work/done.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
fenceNoThe fence token from work_take, for THIS item. Checked exactly when supplied; when omitted we accept the call only while the item has been handed out exactly once, and otherwise refuse with fence_required. Every item on a queue draws its own token independently, so the fence you hold for one item is not one step away from the fence another worker holds for another. The example below is a shape, not a usable value. Example: '3170294857216913'.
resultNoOptional opaque outcome, <=8192 bytes. Never parsed or indexed. Example: '{"ok":true}'.
item_idYesThe item you were given. Example: 'P-1'.
queue_idYesThe queue. Alias: job_id. Example: 'permit-batch-2026-08'.
agent_keyNoYour agent_secret, if your MCP host cannot set the Authorization header. Prefer the header.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / agent_key / examples
      Added value: +[
      +  "the agent_secret that register returned"
      +]
  2. Changed4 schema fields changed
    • addedInput schema / properties / fence / examples
      Added value: +[
      +  3170294857216913
      +]
    • addedInput schema / properties / item_id / examples
      Added value: +[
      +  "P-1"
      +]
    • addedInput schema / properties / queue_id / examples
      Added value: +[
      +  "permit-batch-2026-08"
      +]
    • addedInput schema / properties / result / examples
      Added value: +[
      +  "{\"ok\":true}"
      +]
  3. First observed

TDQS

A4.3/5.0
Behavior5/5

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

Annotations provide destructive/idempotent hints, and the description adds substantial non-obvious behavior: calls are FREE, past-lease completions are refused with lease_lost and ignored, fence-less calls on re-hand-out items are refused with fence_required, the result is opaque and never parsed, and it is surfaced later by work_status. It also documents auth via header or agent_key fallback. This is exactly the kind of context agents need beyond annotations and schema.

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?

The description is long but information-dense, front-loading the core purpose and zero-cost fact. Nearly every sentence adds a distinct behavioral or auth detail, though 'FREE' appears twice and the HTTP route is slightly secondary. Overall it earns its length without being bloated.

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?

Given the param count, the fence/lease complexity, and the absence of an output schema, the description covers the key invocation concerns: what to provide, what errors to expect, auth, cost, and side effects on result visibility. The only real gap is that it does not say what a successful call returns, which would be useful 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, but the description adds value beyond the schema: it explains the purpose of the fence token, the consequence of an expired lease, and that the optional result is returned by work_status for parent progress. It also clarifies agent_key as a header fallback. The params themselves are already well described in the schema, so extra credit is modest but real.

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?

The description opens with a specific action and resource: 'Complete an item you hold.' It clearly identifies successful completion rather than failure, and its references to work_fail are limited to shared fence/lease error behavior, so the agent can distinguish this from the failure-reporting sibling. The title also reinforces the purpose.

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

Usage Guidelines3/5

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

The description implies the right time to call: when the agent holds the item and has finished it. It explains when the call will be refused (lease_lost, fence_required), but it never explicitly contrasts this tool with work_fail or the sibling 'complete', nor states 'use this for success, use work_fail for failure.' That leaves usage selection somewhat implied rather than explicit.

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