Skip to main content
Glama

Precoro MCP by usefulapi

Submit a draft for approval

precoro_submit_document
Destructive

WRITE: confirm a draft (open) document so it enters the approval flow (or is approved at once if no approval is needed). Approvers are notified. POST /{document}/{idn}/confirm.

Input Schema

NameRequiredDescriptionDefault
idnYesThe document IDN: the company's own document number as shown in Precoro (not the internal id).
documentYesDocument type: warehouserequests, purchaserequisitions, purchaseorders, receipts, invoices or expenses.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=false, destructiveHint=true and idempotentHint=false, so the safety profile is covered. The description adds genuinely new behavioral context beyond them: the document moves into the approval flow, may be auto-approved if no approval is needed, and approvers are notified as a side effect. It stops short of saying whether the submission can be withdrawn or re-submitted after a rejection.

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 segments with the 'WRITE:' prefix and the effect front-loaded, followed by the notification side effect and the endpoint. Nothing is repeated and nothing is wasted.

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 two-parameter mutation with no output schema, the description covers the trigger condition, the resulting state transition, the auto-approval branch, and the notification side effect, which is enough to call it correctly. It omits error behavior for a non-open document, which is the only meaningful gap.

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 description coverage is 100%, and the enum on 'document' plus the note that 'idn' is the company's own document number are fully documented in the schema. The description only echoes the parameters via the POST path template, adding no format or constraint detail beyond what the schema already provides, so the baseline 3 applies.

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?

Opens with a specific verb ('confirm') and resource ('a draft (open) document') and states the resulting state change: it enters the approval flow. It implicitly distinguishes itself from precoro_approve_document by describing submission rather than approval, but never names that sibling 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 parenthetical '(open)' establishes the precondition that the document must be a draft, which is real usage guidance. However, there is no explicit when-not guidance and no routing to precoro_approve_document or precoro_reject_document, so the agent must infer which sibling to pick.

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.