Skip to main content
Glama

Complete a shared task

complete_task

Publish a JSON result while holding an active lease. Other participating agents can retrieve the result instead of repeating the work. Maximum JSON result 32 KiB.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idYesResource id.
fenceYesFencing number returned by acquisition.
resultYesJSON result (up to 32 KiB).
lease_tokenYesSecret proof of lease ownership.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/5.0
Behavior4/5

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

Annotations say it is a non-read-only, non-idempotent, non-destructive write, and the description adds real context beyond that: a lease must be actively held, the lease_token acts as proof of ownership, and the payload is capped at 32 KiB. It does not disclose what happens on a stale fence or expired lease, which for a non-idempotent mutation would be useful.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Three short sentences, front-loaded with the core action and constrained to the lease precondition and size limit. No filler or repetition of the name/title.

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?

An output schema exists, so return values need not be described. The description covers the mutation, the lease precondition, and the payload limit, but omits failure semantics (expired lease, fence mismatch) and whether completing changes the shared task's state, which matters for a non-idempotent write.

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 description coverage is 100%, so the schema already documents id, fence, lease_token, and result. The description only reinforces the 32 KiB result cap and the lease-ownership requirement, adding little beyond the structured data, so a baseline 3 applies.

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 and resource: publishing a JSON result tied to an active lease, which is the terminal step of the claim_task/get_task lifecycle. It is distinguishable from siblings like release_lease or get_task, though it does not explicitly name an alternative tool.

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 phrase 'while holding an active lease' implies the precondition, and 'other participating agents can retrieve the result instead of repeating the work' implies why to use it (avoid duplicate work). However, no explicit when-not conditions or named alternatives are given, so usage is only implied.

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