Skip to main content
Glama

Payout Estimate

payout_estimate
Read-onlyIdempotent

Estimate what actually lands in the bank after processing fees. PREMIUM (license).

Typical input {"order_total": 84.5, "fee_pct": 2.9, "fee_fixed": 0.3, "orders": 120, "refund_rate_pct": 4} returns {"gross": 10140.0, "fees": 330.06, "refunds": 405.6, "net_payout": 9404.34, "effective_fee_pct": 3.26}.

Use for cash-flow planning. Not as an authoritative fee schedule: rates depend on your plan, country and card mix, so pass your own. Errors: on invalid, missing, or malformed input this tool never raises a protocol error — it returns {"error": ""}. Every call is read-only and idempotent, so after correcting the input it is always safe to retry.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
ordersNoHow many orders to model. Default 1.
fee_pctNoPercentage fee per transaction. Default 2.9 — a common published rate, not a promise about your account.
fee_fixedNoFixed fee per transaction. Default 0.30.
order_totalYesValue of one order including anything the processor takes a percentage of. Must be greater than 0.
refund_rate_pctNoShare of order value refunded, as a percentage. Default 0.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

TDQS

A4.9/5.0
Behavior5/5

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

The annotations already declare read-only and idempotent behavior, and the description reinforces this with 'Every call is read-only and idempotent.' It also discloses a key behavioral trait: errors never raise protocol errors but return an error object with instructions, ensuring the agent knows how to handle failures. No contradiction with 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?

The description is succinct: three sentences covering purpose, usage guidance, and error behavior, plus a compact example. It is front-loaded with the primary function and every sentence adds substantive value with no redundancy.

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

Completeness5/5

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

The tool is moderately complex with five parameters and an output schema, but the description fully compensates: it includes an example, clarifies limitations (fees depend on plan/country/card mix), and explains error handling. Since an output schema exists, return values need not be detailed, but the example provides a concrete illustration, making the tool self-contained.

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?

The schema provides 100% coverage for all five parameters. The description adds a concrete example showing how parameters combine (e.g., order_total, fee_pct, fee_fixed, orders, refund_rate_pct) and the expected output shape, which clarifies the semantic interplay beyond the schema's individual field descriptions.

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?

The description clearly states the tool estimates the net payout after processing fees, using a specific verb (estimate) and resource (net payout). This distinguishes it from the unrelated sibling tools by focusing on financial modeling rather than bulk operations or metafields.

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?

Explicit guidance is provided: 'Use for cash-flow planning' and 'Not as an authoritative fee schedule' with advice to 'pass your own' rates. This tells the agent when to use it and when not to rely on it, addressing usage context and limitations.

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.

TDQS

A4.7/5.0
Disambiguation5/5

Each tool serves a distinct purpose (pricing, metafields, payouts, CSV headers, URL handles, variant counts) with no overlap in functionality. Descriptions clearly delineate scope and typical use cases.

Naming Consistency5/5

All tool names follow a consistent snake_case pattern with descriptive noun+verb or compound noun structures (e.g., bulk_price_change, metafield_key_check). No stylistic inconsistencies.

Tool Count5/5

Six tools is a well-scoped set for a Shopify preparation server, covering essential tasks without redundancy or unnecessary bloat. Each tool addresses a specific preparation need.

Completeness5/5

The toolset covers the core preparation workflows: pricing adjustments, metafield validation, payout estimation, CSV format checking, URL handle generation, and variant limit assessment. No obvious gaps for the stated domain.

Resources