Skip to main content
Glama

pagarme_orders_write_create

Criar/atualizar/fechar pedidos no Pagar.me V5 (só contas sk_). Ações:

  • create: cria pedido. data = JSON do pedido (customer/customer_id, items[], payments[]).

  • update: atualiza pedido (requer order_id). data = campos a alterar.

  • close: fecha (closed:true) ou reabre (closed:false) o pedido (requer order_id).

[Flattened action: create]

Bulk support: accepts order_ids for batched execution.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
dataNo
closedNo
accountNo
order_idNo
order_idsNo

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. First observed

TDQS

B3.2/5.0
Behavior3/5

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

The description discloses that the tool works only with accounts having 'sk_' prefix, supports bulk execution via order_ids, and explains the three actions. However, it does not mention authentication requirements, rate limits, or side effects like whether creations are reversible. Annotations provide no additional safety hints, so the description carries the burden.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is concise, front-loaded with the main purpose, and uses bullet points for actions. However, it mixes Portuguese and English and includes 'Flattened action: create' which adds minor confusion. No wasted sentences.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

The description covers the multi-action nature and bulk support well, but lacks explanation of the 'account' parameter and does not describe the return value (no output schema). Given the complexity, it is adequate but not fully complete.

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%, so description must explain parameters. It explains data (JSON for create/update), closed (for close action), order_id (required for update/close), and order_ids (for bulk). However, the 'account' parameter is not explained, leaving a gap. Overall, adds value but not complete.

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?

The description clearly states the tool creates, updates, or closes orders (Criar/atualizar/fechar pedidos) and lists specific actions. However, the presence of sibling tools for update and close creates ambiguity about which tool to use, reducing clarity.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

No explicit guidance on when to use this tool versus sibling tools like pagarme_orders_write_update or pagarme_orders_write_close. The description mentions that update and close require order_id but does not advise the agent to use more specific tools when only a single action is needed.

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.