Skip to main content
Glama

Agri Prices (MCP Africa Master Class)

Compare a crop across markets

compare_markets
Read-only

Compare a crop's price across all markets and report the cheapest, the dearest and the spread.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "crop": "<crop>"
    },
    "name": "compare_markets"
  }
}

Input Schema

NameRequiredDescriptionDefault
cropYesCrop name, e.g. tomatoes

Output Schema

NameRequiredDescriptionDefault
cropYes
quotesYes
dearestYes
cheapestYes
spreadZarPerKgYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true and openWorldHint=false, so the safety profile is covered and the description only needs to add context. It adds the important scope fact that all markets are covered and a fixed three-part summary is returned, but says nothing about behavior when a crop has no listings, partial market coverage, or stale prices.

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?

One sentence, front-loaded with the action and scope, and no redundant or filler wording. Everything stated contributes to selection or expectation of the result.

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 one-parameter, read-only aggregation tool with an output schema that already documents return values, this is nearly complete and correctly avoids re-explaining the response. The only real gap is edge-case behavior when the crop is unavailable in the data set.

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?

There is a single required parameter with 100% schema description coverage and an enum of crop names, so the schema carries the semantics. The description only says 'a crop's price' and adds no matching rules, case handling, or enum guidance beyond the schema, which is the expected baseline here.

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 pairs a specific verb (compare) with a specific resource (a crop's price across all markets) and even names the output shape: cheapest, dearest, spread. It is clearly distinct from a single-point lookup like get_price, though it never names the sibling outright.

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?

Usage is only implied: 'across all markets' suggests this is the aggregate view versus a single-market lookup, but there is no explicit when-to-use or when-not-to-use statement and no named alternative. An agent can infer the routing, but must do the inference itself.

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.