Skip to main content
Glama

AssetLab

Create purchase order link

create_purchase_order_link

Link a purchase order to a work order, PM schedule or project for reference. Requires purchase_orders:write scope. Required: purchase_order_id and exactly one of work_order_id, pm_schedule_id, project_id. A link does not add to committed cost; to charge the cost, set project_id or work_order_id on the purchase order itself.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
project_idNoProject to link - resolve via list_projects
work_order_idNoWork order to link - resolve via list_work_orders
pm_schedule_idNoPM schedule to link - resolve via list_pm_schedules
purchase_order_idYesPurchase order ID (required)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=false, destructiveHint=false, idempotentHint=false and openWorldHint=false, so the safety profile is covered. The description adds genuinely useful non-schema context: the required auth scope and the cost-accounting semantics of a link. It stops short of disclosing duplicate-link behavior, which matters given idempotentHint=false.

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 sentences, no filler; purpose is front-loaded, then prerequisites and parameters, then the critical cost caveat. Every sentence carries distinct information.

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?

With no output schema, the description still covers what the tool does, the required scope, and the argument shape, which is complete enough to invoke it correctly. The only notable gap is return/duplicate behavior, which is minor in this context.

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?

Schema coverage is 100% and each ID parameter points to its resolver list tool, so the baseline would be 3. The description goes beyond the schema by stating the mutual-exclusion rule ('exactly one of work_order_id, pm_schedule_id, project_id') that the JSON schema does not encode. It adds no format or edge-case detail beyond that.

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 (Link) and resource (purchase order) plus the three linkable targets (work order, PM schedule, project), and distinguishes itself from the cost-charging behavior of setting project_id/work_order_id on the purchase order itself. An agent can tell this apart from create_purchase_order_line or create_purchase_order_link's siblings without opening the schema.

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?

Explicitly names the required scope (purchase_orders:write), the required parameter plus the exactly-one-of constraint, and gives a when-not condition: a link does not add to committed cost, so to charge cost you instead set project_id/work_order_id on the purchase order. This is precise routing guidance rather than implied usage.

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