Skip to main content
Glama

get_payment_costs

Read-only

Get the cost side of provider-synced payment data.

Returns total costs with a breakdown (manual costs, processing fees, team commissions, refunds/disputes), net revenue, the "you keep" amount, per-member commissions, manual costs by category, and recent manual cost entries.

Only available to Creator, Manager and Finance roles.

Args: time_period: Time period to query. Defaults to this_month.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "get_payment_costs"
  }
}

Input Schema

NameRequiredDescriptionDefault
time_periodNothis_month

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already establish this as a safe read (readOnlyHint=true, destructiveHint=false), and the description adds genuinely new behavioral context: a role-based authorization requirement that determines whether the call will succeed at all. It does not say how many entries 'recent manual cost entries' returns or whether results are paginated/truncated, which is the main remaining behavioral gap.

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 one-line purpose is front-loaded, and the output inventory is delivered as a compact prose list rather than sprawling prose. The return-value enumeration partially duplicates the output schema, which is the only place words could be trimmed.

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 single-optional-parameter read-only tool with an output schema, the definition covers purpose, authorization, and default behavior — most of what an agent needs. The unenumerated time_period values and the unspecified size/ordering of 'recent' entries are the only meaningful omissions.

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 0%, so the description must carry the load; it names the parameter, states its purpose, and surfaces the default ('this_month') as a concrete example value. However, it never enumerates the accepted time-period values beyond that one example, so an agent still has to guess valid inputs.

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 opens with a specific verb and resource ('Get the cost side of provider-synced payment data') and enumerates the exact outputs (processing fees, team commissions, refunds/disputes, net revenue, per-member commissions), which clearly separates it from revenue-oriented payment siblings. It stops short of naming an alternative tool, so an agent must infer the boundary from the 'cost side' framing alone.

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 only routing guidance is a permission gate ('Only available to Creator, Manager and Finance roles'), which tells an agent who may call it but not when to prefer it over get_payment_overview or get_payment_transactions. There are no explicit when-not conditions or alternative-tool pointers, so usage is implied rather than 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