Skip to main content
Glama

send_mandate

Sends a schema-validated work order (mandate) to a contractor with fixed fields, acceptance criteria, and a due date; replies arrive as accept/reject receipts in the same thread.

Instructions

Sends a MANDATE (mandate.v1, a work order) to a contractor. The only correct way to send a mandate: the fields are fixed, mandate_id/issued_at/issuer are filled in automatically, and the data is checked against the schema https://api.contessera.ai/schemas/mandate.v1.schema.json before sending. acceptance — the acceptance criteria copied verbatim from the story card (1..50 lines); frame — the context in words (project, epic, branch, staging); due — a date, YYYY-MM-DD; no money and no hours. The contractor's answer arrives as receipt.v1 in the same thread (check_inbox): kind=accepted — accepted; kind=rejected — read reason/schema_url and send it again with send_mandate.

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": {
      "to": "<to>",
      "story_url": "<story_url>",
      "title": "<title>",
      "acceptance": "<acceptance>",
      "frame": "<frame>"
    },
    "name": "send_mandate"
  }
}

Input Schema

NameRequiredDescriptionDefault
toYes
dueNo
noteNo
frameYes
titleYes
story_refNo
story_urlYes
acceptanceYes
allow_unverifiedNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4/5.0
Behavior4/5

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

Annotations already flag this as a non-readonly, open-world, non-idempotent write, and the description adds real context beyond them: mandate_id/issued_at/issuer are auto-filled, payloads are validated against a named schema URL before sending, and the async reply protocol is spelled out. It stops short of explaining allow_unverified (a clear bypass mechanism that the agent can set) or what happens when schema validation fails.

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 critical exclusivity claim is front-loaded, followed by mechanics and then the reply loop, so an agent can stop reading once it has what it needs. The middle paragraph is a dense semicolon-and-em-dash chain that is harder to parse than it needs to be, but little of it is filler.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With nine parameters and no output schema, the definition covers the send mechanics and even the asynchronous return path (receipt.v1 arriving in the thread, readable via check_inbox), which is valuable. It still leaves gaps an agent would hit in practice: the type/format expected for to and story_url, the story_ref distinction, and the semantics and risk of allow_unverified.

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 coverage is 0%, so the description has to carry the load; it does explain the non-obvious params — acceptance is the criteria copied verbatim (1..50 lines), frame is project/epic/branch/staging context, due is YYYY-MM-DD — and adds a constraint absent from the schema ("no money and no hours"). However, five of nine params go unexplained, including the ambiguous story_ref vs. story_url pair and the consequential allow_unverified flag, leaving meaningful gaps.

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?

"Sends a MANDATE (mandate.v1, a work order) to a contractor" names a specific verb, a specific typed resource, and the recipient, so the agent knows exactly what this tool produces. The follow-up clause "The only correct way to send a mandate" further distinguishes it from the generic sibling send.

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?

It explicitly declares itself the exclusive path for this operation and describes the downstream loop: the contractor's answer comes back as receipt.v1 via check_inbox, and a kind=rejected reply should be re-sent with send_mandate after reading reason/schema_url. What's missing is any contrast with the sibling send tool or a statement of preconditions (e.g., an existing contact relationship) before calling.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.