Skip to main content
Glama

Simulate the fees of a charge

preview_payment_fees
Read-only

How much the student pays and the trainer receives for an amount, method and installments. Only a simulation: nothing is charged.

Input Schema

NameRequiredDescriptionDefault
providerNo
amount_centsYesAmount in cents (R$ 300,00 = 30000).
installmentsNoCard installments, 1 by default.
payment_methodYes
pass_platform_feeYesStudent pays the platform fee.
pass_processing_feeYesStudent pays the processing fee.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and destructiveHint=false, so the bar is lower, yet the description adds the key operational fact that no charge is created and clarifies the response semantics (student-side vs trainer-side amounts). It does not mention auth/permission requirements or fee-configuration dependencies, keeping it at 4.

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 short sentences with the outcome stated first and the safety caveat second; no filler and nothing buried.

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?

Six parameters, no output schema, and the description does not explain the fee-passing booleans or the provider field, which are precisely the knobs an agent could set wrongly. It is adequate for a read-only simulation but leaves real gaps.

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 67%, and the description only echoes three of the inputs (amount, method, installments) that the schema already documents. The two required booleans pass_platform_fee and pass_processing_fee, which materially change the result, are never explained in the description, nor is 'provider'.

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?

Names the exact resource and output split ('how much the student pays and the trainer receives') plus the inputs that drive it (amount, method, installments). 'Only a simulation: nothing is charged' confirms it is a preview rather than a charge. It does not name a sibling to contrast with (e.g. get_fee_settings, get_payment), so it stops short of 5.

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 phrase 'only a simulation' implies the tool is for pre-charge estimation, but the description never says when to use it versus get_fee_settings or before list_charges/get_payment. Usage is inferable, not stated.

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