Skip to main content
Glama

Create purchase order

create_purchase_order

Create a purchase order. po_number is assigned automatically. Optionally link subcontractor_id if the vendor is an existing subcontractor.

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": {
      "project_id": "<project_id>",
      "vendor_name": "<vendor_name>"
    },
    "name": "create_purchase_order"
  }
}

Input Schema

NameRequiredDescriptionDefault
notesNo
amountNo
statusNo
agent_idNo
order_dateNo
project_idYes
descriptionNo
vendor_nameYes
subcontractor_idNo
expected_delivery_dateNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.1/5.0
Behavior3/5

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

Annotations already declare the mutation is non-read-only and non-destructive, so the safety bar is lower. The description adds useful behavior — po_number is auto-assigned so the agent need not supply one — but omits that idempotentHint=false means repeated calls may create duplicate orders, and says nothing about status defaults or required-field validation.

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?

Three short sentences, front-loaded with the action and then the two most confusing details. No padding, though the po_number note could be folded more tightly into the first sentence.

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

Completeness2/5

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

For a 10-parameter creation tool with no output schema and zero schema documentation, the description covers only a fraction of what an agent needs — required inputs, date formats, status semantics, and duplicate-creation risk are all absent. It is not misleading, but it is far from complete.

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% across 10 parameters, so the description must carry the burden. It only clarifies subcontractor_id (optional, requires an existing subcontractor) and mentions po_number, which is not even a parameter; required fields project_id and vendor_name, the status enum, and the date fields are left entirely unexplained.

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?

The description opens with a specific verb and resource ('Create a purchase order'), which clearly separates it from update_purchase_order and list_purchase_orders. It does not explicitly name a sibling or contrast with create_change_order, so it stops short of full differentiation.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

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

There is conditional guidance for one parameter ('link subcontractor_id if the vendor is an existing subcontractor'), which implies usage context. However, there is no statement of when to use this versus create_change_order, what prerequisites exist (project must exist, vendor must be valid), or any 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