Skip to main content
Glama

generate_purchase_orders

Create draft inbound purchase orders for every item at or below its reorder point, grouped by preferred supplier. Returns how many orders and lines were created. The orders are drafts; complete them in the app when the stock arrives.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "generate_purchase_orders"
  }
}

Input Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.7/5.0
Behavior3/5

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

With no annotations, the description carries the full burden. It does well on the most important trait: the created orders are drafts requiring manual completion, and it discloses the return payload ('how many orders and lines were created'). It omits duplicate-run behavior (are orders recreated on a second call?), how line quantities are determined, and any permission prerequisites — significant gaps for an unprompted bulk-mutation tool.

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, each earning its place: what is created and for which items, what is returned, and the follow-up caveat. The draft-state warning is appropriately placed at the end as the operational caveat.

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 parameterless tool with no annotations and no output schema, the description covers the essential ground: creation scope, draft status, and return summary. The remaining gaps (repeat-invocation safety, quantity calculation) are real but secondary for an agent deciding whether and when to call it.

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

Parameters4/5

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

The tool takes zero parameters, so there is nothing for the description to disambiguate. Baseline 4 applies; the description correctly implies the tool operates on ambient inventory state rather than caller-supplied filters.

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 names a specific verb and resource ('Create draft inbound purchase orders') and scopes it precisely to 'every item at or below its reorder point, grouped by preferred supplier'. That scope implicitly separates it from the read-only get_reorder_suggestions and from the manual create_order sibling, though no sibling is named explicitly.

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?

The trigger condition (items at or below reorder point) is implied by the scope statement, and the closing sentence tells the agent what to do afterwards ('complete them in the app'). There is no explicit when-not guidance, no statement about what happens if open orders already exist, and no routing to get_reorder_suggestions for a preview-only path.

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