Skip to main content
Glama
harsha-moparthy

legacy-mcp

place_order

Validates customer and items, inserts order lines, and completes order; automatically deletes incomplete orders on failure.

Instructions

The three-call legacy protocol, wrapped with compensation.

HDR_INS validates the customer and creates an 'I' header; each line is inserted with the sequence numbers the backend insists on; FIN totals, decrements stock, and flips the order to pending. If anything fails after the header exists, the incomplete order is DELETED (compensating action) — the backend has no cross-call transactions, so cleanup is the wrapper's job, not the agent's.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
itemsYes
customer_idYes
Behavior5/5

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

With no annotations, the description fully discloses behavioral traits: the three-call protocol, automatic compensation (deletion on failure), and that the backend lacks cross-call transactions. It clearly explains what happens and what the agent should not do.

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?

The description is concise yet informative, with a front-loaded summary ('The three-call legacy protocol, wrapped with compensation') followed by clear, structured details. Every sentence serves a purpose without redundancy.

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?

Despite no output schema and low schema coverage, the description adequately covers the tool's complex behavior, internal protocol, compensation semantics, and limits of agent responsibility. It is complete for an agent to understand how to invoke and what to expect.

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 coverage is 0%, and the description does not provide explicit parameter descriptions. However, it implies customer_id is used for validation and items are line items inserted with sequence numbers. This adds some meaning but is not fully detailed.

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?

The description clearly states it places an order via a three-call legacy protocol with compensation. It distinguishes from siblings like cancel_order and cleanup_incomplete_orders by explaining that cleanup is automatically handled, and it specifies the internal steps (HDR_INS, line inserts, FIN).

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?

The description provides context for when to use the tool (for placing orders) and clarifies that cleanup is not the agent's responsibility. However, it does not explicitly mention when not to use it or contrast with alternatives like check_item_availability or get_customer_credit, but the internal details compensate.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/harsha-moparthy/legacy-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server