Skip to main content
Glama
janishkumar

po-guard-mcp

by janishkumar

create_purchase_order

Create a draft purchase order for a supplier, cost centre and line items using a confirmation code from the preview step, with procurement controls applied.

Instructions

Create a draft purchase order. Needs a confirmation code from preview.

Args: supplier: Supplier ID (from search_suppliers). cost_centre: Cost centre to charge. lines: [{"item_code": ..., "qty": ..., "rate": ..., "description": optional}]. confirmation_code: From preview("create_purchase_order", ). required_by: Optional ISO date, e.g. "2026-11-30". notes: Optional free text, stored as-is.

Input Schema

NameRequiredDescriptionDefault
linesYes
notesNo
supplierYes
cost_centreYes
required_byNo
confirmation_codeNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.8/5.0
Behavior4/5

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

Annotations cover the safety profile (not read-only, not destructive, not idempotent, closed-world), and the description adds real context beyond them: the result is a draft (not submitted for approval), a preview-confirmation gate is required, and notes are stored verbatim. It doesn't say what the response contains or whether duplicate calls create duplicate POs, but the output schema covers returns.

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?

One front-loaded sentence states the action and the gating requirement, then a compact Args block. Every line adds information an agent needs; nothing is padding.

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

Completeness5/5

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

For a mutation tool with an output schema already present, the description supplies the missing pieces: the draft semantics, the confirmation-code workflow, and full parameter documentation. An agent has everything needed to invoke it correctly without guessing.

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?

Schema description coverage is 0%, so the description carries the full burden and does: it documents all six parameters including the nested line-item shape (item_code, qty, rate, optional description), the provenance of supplier and confirmation_code, and an ISO date example for required_by. This is meaning the schema alone does not provide.

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 verb and resource ('Create a draft purchase order') and the qualifier 'draft' distinguishes it from submit_for_approval and approve_purchase_order in the sibling set. An agent can tell immediately this is the creation step, not the workflow-transition step.

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?

Gives an explicit prerequisite and names the alternative: the confirmation code must come from `preview` called with these same args, which establishes the required two-step workflow. It also points to search_suppliers as the source of the supplier ID, so the agent knows the ordering of calls.

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