Skip to main content
Glama

Commission import

commission_import
Read-onlyIdempotent

[Analysis] Imports a marketplace settlement (eMAG "decont" export, a Temu statement file) as CSV text or an XLSX file in base64: stores the real commission per order line and lists the lines whose percentage deviates from the rule by more than 0.5 points. Columns are detected by name (Comanda, SKU, Valoare fara TVA, Comision...).

Input Schema

NameRequiredDescriptionDefault
csvNoThe CSV content.
periodNoYYYY-MM the settlement covers, used when lines have no date.
accountNoAccount id, label, domain or "channel country" (e.g. "emag ro"). Optional when only one account is connected.
vat_percentNoVAT to derive net from gross when the file has only gross (default 21).
xlsx_base64NoThe XLSX file, base64.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

B3.1/5.0
Behavior1/5

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

The description says the tool 'stores the real commission per order line', a state-changing write, while annotations declare readOnlyHint=true and destructiveHint=false. The description also omits the failure behaviour when columns are not detected, which matters given name-based column detection.

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?

A single dense sentence with the core action front-loaded after the [Analysis] tag, followed by input formats and the deviation rule. Every clause carries information, though the column-name parenthetical makes it slightly crowded.

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?

An output schema exists, so return values need no explanation, but the description never defines what 'the rule' is (presumably from commission_rules_set) or what happens to previously imported lines on re-import despite idempotentHint=true. Combined with the mutation ambiguity, an agent lacks enough to call this confidently.

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?

Schema coverage is already 100%, but the description adds real value beyond the schema by naming the columns that are auto-detected (Comanda, SKU, Valoare fara TVA, Comision), telling the agent what a valid file looks like. It does not clarify the interaction between csv and xlsx_base64 or when account must be supplied.

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 and resource: imports a marketplace settlement (eMAG decont export, Temu statement) and records the real commission per order line while flagging percentage deviations over 0.5 points. It does not say how this differs from commission_actual_sync or commissions_get, so sibling routing is left to the agent.

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 usage context (reconciling settlement files against commission rules) is implied by the description, and the accepted input formats are named, but there is no explicit when-to-use versus commission_actual_sync, no prerequisites such as whether rules must be configured first, and no exclusions.

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