Skip to main content
Glama

Finance: File a purchase request

fin_purchase_request_create

File a purchase request («заявка на закупку») for what somebody needs bought — a foreman's list of materials and tools. Give the positions as the person said them; a position with erp_inventory_item_id (from erp_product_search) is linked to that catalogue item, any other is matched to the catalogue only when it is unambiguous and otherwise stays a NEW position for the manager to source from suppliers (never guess an item). By default the request is sent for approval (the cabinet's approval chain); submit=false keeps it a draft. Creates no catalogue item, orders and pays nothing. CONFIRMATION: this tool is PROPOSED, never performed directly. You get status='confirmation_required' with an action_id and a plan_token, and the write happens only after confirm_action.

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": {
      "items": "<items>"
    },
    "name": "fin_purchase_request_create"
  }
}

Input Schema

NameRequiredDescriptionDefault
noteNoThe person's own words, for the manager.
siteNoObject / building site.
itemsYes
submitNoSend for approval (default true).
desired_dateNoYYYY-MM-DD

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.8/5.0
Behavior5/5

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

Annotations only say readOnlyHint=false, destructiveHint=false, openWorldHint=false; the description carries the genuinely non-obvious behavior on top of that: the call is proposed, never performed, returning status='confirmation_required' with an action_id and plan_token, with the write occurring only after confirm_action. It further discloses matching rules and the anti-guessing policy ("never guess an item") and the default submit=true, none of which appear in the annotations.

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?

Purpose, submission semantics, matching rules and the CONFIRMATION block are ordered by importance and front-loaded, and the labelled CONFIRMATION section makes the critical constraint scannable. The parenthetical gloss «заявка на закупку» is the only decoration, and it aids matching for a domain term rather than padding.

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 5-parameter create tool with no output schema, the description covers the things an agent cannot infer: the confirmation handshake, default submission, catalogue-matching fallback, and the fact that nothing is ordered, paid or created in the catalogue. What is missing is the shape of a successful (non-confirmation) result and the 40-item cap, both of which sit in the schema or are left unstated.

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 already 80%, so the description only needs to add meaning, and it does for the highest-risk parameter: erp_inventory_item_id is tied to erp_product_search and its consequence (linked vs. NEW position) is explained, and items are framed as verbatim positions with spec. It adds little for note, site, quantity, unit and desired_date, which the schema already documents, so it stops short of a 5.

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 ("File a purchase request ... for what somebody needs bought") and immediately scopes what the artifact contains (a foreman's list of materials and tools). It also draws explicit negative boundaries — "Creates no catalogue item, orders and pays nothing" — so the agent knows this is a request artifact, not an ERP order, which is precisely the distinction that matters against siblings like erp_purchase_record.

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?

It names the upstream alternative (erp_product_search) that supplies erp_inventory_item_id and states the fallback path when no id is known: unambiguous catalogue match, otherwise a NEW position left to the manager. It also gives the when-to-use variant switch — default sends for approval, submit=false keeps a draft — and routes the actual write through confirm_action, so the agent knows both the entry point and the follow-up.

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