Skip to main content
Glama

Marketplace fees

get_marketplace_economics
Read-onlyIdempotent

What each connected marketplace (Mirakl marketplaces such as El Corte Inglés or Carrefour, and each Channable channel such as bol) sold and cost over the period: gross (sold and kept, net of reversals), fees (commission charged, less commission handed back on refunds), takeRatePct (fees ÷ gross), marginAfterFees, settledFees (what the marketplace's own ledger says it charged; null = not reconciled yet, not zero), orders, and cogsCoveragePct (share of orders whose cost is known). total sums every marketplace. No rows = no marketplace connected. Use for marketplace fees, commissions, take rate or which marketplace is worth it. Optional from and to (inclusive YYYY-MM-DD, both or neither, never after today) read another span instead of the default period. A named month, a week or two dates the operator gave MUST be sent here: without them this reads the default period (the one on the operator's screen, else the last 30 days), which is not that month. When the operator names no period, send neither.

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_marketplace_economics"
  }
}

Input Schema

NameRequiredDescriptionDefault
toNoLast day of the span, inclusive, as YYYY-MM-DD; not after today. Send together with `from`, or omit both to read the default period: the one on the operator's screen when the message names it, else the last 30 days.
fromNoFirst day of the span, inclusive, as YYYY-MM-DD. Send together with `to`, or omit both to read the default period: the one on the operator's screen when the message names it, else the last 30 days.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedInput schema / properties / from / description
      Previous value: -"First day of the span, inclusive, as YYYY-MM-DD. Send together with `to`, or omit both to read the default 30-day period."New value: +"First day of the span, inclusive, as YYYY-MM-DD. Send together with `to`, or omit both to read the default period: the one on the operator's screen when the message names it, else the last 30 days."
    • changedInput schema / properties / to / description
      Previous value: -"Last day of the span, inclusive, as YYYY-MM-DD; not after today. Send together with `from`, or omit both to read the default 30-day period."New value: +"Last day of the span, inclusive, as YYYY-MM-DD; not after today. Send together with `from`, or omit both to read the default period: the one on the operator's screen when the message names it, else the last 30 days."
  2. Added

TDQS

A4.4/5.0
Behavior5/5

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

Annotations already cover read-only, idempotent, closed-world safety, and the description adds real substance on top: settledFees null means 'not reconciled yet, not zero', no rows means no marketplace connected, and total aggregates every marketplace. It also explains the default-period fallback (operator's screen period, else last 30 days), which the annotations say nothing about.

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?

Metric definitions are front-loaded and each one earns its place by clarifying ambiguous fields like gross and settledFees. The period rule is stated three times across the description (optional params, MUST-send rule, and 'send neither'), which is redundant for a two-parameter tool, and the first sentence is a dense run-on.

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?

With no output schema, the description carries the return-value burden and does so thoroughly, defining every metric, the null semantics, the empty-result meaning, and the total row. An agent has everything needed to call it and interpret the response.

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 100% and the schema descriptions already state inclusive YYYY-MM-DD, the both-or-neither pairing, and the default-period fallback, so the description largely restates it. It does add emphasis on the mandatory routing behavior ('A named month... MUST be sent here'), which is meaning beyond the schema, but this is repetition rather than new syntax.

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?

Opens with a specific verb+resource ('What each connected marketplace sold and cost over the period') and enumerates the exact metrics returned (gross, fees, takeRatePct, marginAfterFees, settledFees, orders, cogsCoveragePct). The 'Use for marketplace fees, commissions, take rate' clause separates it from reporting siblings like get_pnl or get_contribution_breakdown without opening their schemas.

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

Usage Guidelines4/5

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

Gives explicit triggers ('Use for marketplace fees, commissions, take rate or which marketplace is worth it') and a hard routing rule: a named month, week, or two dates MUST be sent here, otherwise send neither. It does not name a sibling alternative for period-scoped queries, so it stops short of full when/when-not/alternatives coverage.

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