Skip to main content
Glama

Field Service Business Platform by Doing Work

po_undoReceipt

Take back a received material from a purchase order (wrong part, returned). It leaves job cost and the line can be received again. Owner or office.

Input Schema

NameRequiredDescriptionDefault
reasonNo
material_idYes

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.7/5.0
Behavior4/5

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

With no annotations, the description still discloses the key behavioral traits of this mutation: job cost is left intact and the line becomes receivable again, so the agent knows the effect is a reversible state rollback. Authorization scope ('Owner or office') is also surfaced. It does not say what happens to any recorded bill or stock quantities, which is the remaining gap.

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 action and its effect, with the permission note last. Nothing is padded or repeated from the title.

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?

An output schema exists, so return values need not be explained, and the core reversal semantics are covered. However, for an unannotated mutation with 0% parameter coverage, the definition should identify the required material_id and explain the free-text reason; it also leaves downstream effects on bills/stock implicit.

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

Parameters2/5

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

Schema description coverage is 0% for two parameters, so the description must carry the load — but it never mentions material_id or the optional reason (max 500 chars). 'A received material' only loosely implies a material identifier, and the reason field is completely undocumented.

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 ('take back') and resource ('a received material from a purchase order'), which clearly positions it as the inverse of po_receive rather than po_cancel or po_update. Sibling names are not cited explicitly, but the reversal semantics are unambiguous.

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?

Gives concrete triggering conditions — 'wrong part, returned' — and a permission note ('Owner or office'). It does not contrast with po_cancel (whole-order cancellation) or state when undo is disallowed, so no explicit exclusions.

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