Skip to main content
Glama

Finish work

finish_work

Mark a started job finished or failed and post work.finished to subscribers. Call this when the work is actually done.

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": {
      "job_id": "<job_id>"
    },
    "name": "finish_work"
  }
}

Input Schema

NameRequiredDescriptionDefault
detailNoWhat the subscriber should hear.
job_idYesThe id returned by start_work.
statusNofinished or failed. Defaults to finished.
contextNoWhy you are calling this tool, in 15 to 25 words, third person. Say what the user is trying to do.

Output Schema

NameRequiredDescriptionDefault
job_idYes
statusYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / context
      Added value: +{
      +  "description": "Why you are calling this tool, in 15 to 25 words, third person. Say what the user is trying to do.",
      +  "type": "string"
      +}
  2. Added

TDQS

A3.8/5.0
Behavior3/5

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

The description usefully discloses an effect the annotations do not: the work.finished event is published to subscribers, which tells the agent this call is externally observable despite openWorldHint=false. It does not cover idempotency (calling twice), what happens with an unknown or already-finished job_id, or whether the failure status is recoverable, which is the remaining gap for a terminal mutation.

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?

Two short sentences, action and side effect first, trigger condition second. Nothing is padded and the most important information is front-loaded.

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 an output schema present and annotations covering the safety profile, the description only needs to explain the action, its trigger, and its side effect, all of which it does. The only omission is edge-case behavior for repeated or invalid calls, which is minor for a four-parameter tool.

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 job_id, status, detail, and context are already documented, and the description adds no new per-parameter meaning. Saying "started job" mildly reinforces that job_id must originate from start_work, but that is already in 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 gives a specific verb and resource ("Mark a started job finished or failed") plus the resulting side effect ("post work.finished to subscribers"). It is nearly self-sufficient, though it differentiates from the sibling start_work only indirectly via the phrase "started job" rather than naming it outright.

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?

"Call this when the work is actually done" is a clear positive trigger condition, and it implicitly excludes premature calls. It stops short of naming explicit alternatives or stating what to do if the job was never started, but the context is unambiguous.

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.