Skip to main content
Glama

Pinpal Jobs

Set a document's status

set_status
Destructive

Move a document: sent (numbers and locks it, without mailing; send_document does both), accepted or signed or declined (the client answered outside the link); an invoice also late (only when the person says so), paid (mark_paid takes the date), cancelled (the reason in the note is required), written_off (a bad debt). Past due is not a status: see pastDueDays and set_due_date. Never back to draft: that is new_version, or copy_document. The note goes into the thread.

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": {
      "document": "<document>",
      "status": "<status>"
    },
    "name": "set_status"
  }
}

Input Schema

NameRequiredDescriptionDefault
noteNoWhy, or where the answer came from. Required for cancelled: the reason.
statusYes
documentYesThe document's id (from list_documents), or its number once sent, like INV-0007.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true and readOnlyHint=false, but the description still adds real context: 'sent' numbers and locks the document without mailing, the note is injected into the thread, and status changes are irreversible in one direction (never back to draft). It does not cover side effects like client notifications or whether other fields are mutated on transition, leaving a small gap.

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 verb and resource, then organized state-by-state with parenthetical clarifications, and closed with the reversal rule. The telegraphic compression ('accepted or signed or declined') is efficient but slightly dense to parse; almost every clause carries information.

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 destructive three-parameter mutation with no output schema, the definition covers the legal state machine, the note requirement, and the document identifier (via schema). It stops short of describing what a successful call returns or what downstream effects a transition triggers, but nothing required to call it correctly is missing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The status parameter has no enum in the schema, and the description compensates fully by defining every legal value and its semantics. It also adds meaning beyond the schema for note ('the reason in the note is required' for cancelled; 'the note goes into the thread'), well above the 67% schema description coverage baseline.

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?

Names a specific verb (move) and resource (document), then enumerates the exact target states: sent, accepted, signed, declined, late, paid, cancelled, written_off. Each state is disambiguated from a sibling tool, so an agent can distinguish this from send_document, mark_paid, set_due_date, new_version, and copy_document 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 Guidelines5/5

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

Explicit routing in both directions: 'sent' is contrasted with send_document ('does both'), 'paid' with mark_paid ('takes the date'), 'past due is not a status: see pastDueDays and set_due_date', and reverting to draft with new_version or copy_document. It states when to use and when not to use, naming each alternative.

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