Skip to main content
Glama

Close the rest short

p2p_close_po_short
Destructive

Stop waiting for what has not arrived: the vendor will not send it. What did arrive stays received and billable. With a reason. Use it when the vendor says the rest is not coming. When nothing has arrived at all, cancel instead. Effects: order closed short.

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": {
      "po_id": "<po_id>",
      "reason": "<reason>"
    },
    "name": "p2p_close_po_short"
  }
}

Input Schema

NameRequiredDescriptionDefault
po_idYesThe order. An existing p2p_po id.
reasonYesWhy the rest will not come.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true, idempotentHint=false, openWorldHint=false. The description adds genuinely useful context beyond them: partial receipts remain received and billable, and a reason is mandatory. It doesn't cover reversibility or permissions, keeping it at 4.

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-loads the core effect and branches to the alternative quickly. The opening is somewhat rhetorical ('Stop waiting for what has not arrived'), but the sentences still carry scoping and effect information rather than padding.

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 two-param mutation with no output schema, the description explains preconditions, effect on prior receipts, and the contrast with cancel. What the call returns is unspecified, a minor gap given no output schema exists.

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 both parameters are already documented. The description only echoes that a reason accompanies the close and adds no format or constraint detail beyond the schema, making the baseline 3 appropriate.

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?

States a specific action (close the PO short) on a specific resource and clarifies that only the un-received remainder is closed while 'what did arrive stays received and billable'. It also names the sibling contrast case (cancel) so the agent can distinguish the two without opening schemas.

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 when-to-use ('when the vendor says the rest is not coming') and explicit when-not plus alternative ('When nothing has arrived at all, cancel instead'). Routing 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.