Skip to main content
Glama

Precoro MCP by usefulapi

Reject a document

precoro_reject_document
Destructive

WRITE: reject (deny) a document that is waiting for the key user's approval. A comment is required; the creator is notified and sees it. POST /{document}/{idn}/reject.

Input Schema

NameRequiredDescriptionDefault
idnYesThe document IDN: the company's own document number as shown in Precoro (not the internal id).
commentYesWhy it is rejected (required, up to 800 characters).
documentYesDocument type: warehouserequests, purchaserequisitions, purchaseorders, receipts, invoices or expenses.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true and non-idempotent, so the safety profile is covered; the description adds real value by disclosing that a comment is mandatory and that the creator is notified and will see it — a side effect not captured anywhere in structured fields. It does not mention required permissions or whether rejection is reversible.

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?

Two compact sentences: the WRITE prefix and verb lead, the precondition and required side effect follow, and the endpoint is last. No filler.

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 3-parameter mutation with no output schema and rich annotations, the description covers trigger state, required input, side effects, and endpoint. It leaves out only permission requirements and response behavior, which are minor given no output schema exists.

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 100% with descriptions on all three parameters, including the IDN-vs-internal-id distinction and the 800-char comment limit. The description only restates that the comment is required, adding nothing beyond the schema, so 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?

States a specific verb (reject/deny) and resource (document) plus the precondition that it must be waiting for the key user's approval, which separates it from the get_*/list_* siblings. It does not explicitly name precoro_approve_document as the counterpart, so it stops just short of full sibling differentiation.

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 phrase 'waiting for the key user's approval' gives a clear condition for use and implicitly excludes documents in other states. No explicit when-not guidance or permission prerequisites are given, but the trigger context is unambiguous.

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.