Skip to main content
Glama

Agri Prices (MCP Africa Master Class)

Get crop price

get_price
Read-only

Get the average price (ZAR per kg) of a crop at one market. Returns provenance (source, asOf).

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>",
      "marketId": "<marketId>"
    },
    "name": "get_price"
  }
}

Input Schema

NameRequiredDescriptionDefault
cropYesCrop name, e.g. tomatoes
marketIdYesMarket id: jhb, tsh, cpt, dbn or eln (call list_markets to see them)

Output Schema

NameRequiredDescriptionDefault
asOfYes
cropYes
sourceYes
marketIdYes
marketNameYes
priceZarPerKgYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/5.0
Behavior4/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. The description adds real behavioral context beyond that: the value is an average price in ZAR per kg, and it returns provenance (source, asOf), which tells the agent the figure is sourced and timestamped.

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?

Two short sentences, zero filler, with the core operation and unit front-loaded and provenance mentioned second. Every clause earns its place.

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 simple two-parameter read tool with full schema coverage, an output schema, and annotations covering safety, this is nearly complete. The only gap is routing guidance against the compare_markets sibling.

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 100% with enums for both parameters and an explicit pointer to list_markets, so the schema carries the parameter burden. The description only reinforces that a single market is queried; it adds no format or selection detail beyond the schema.

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 ('Get the average price ... of a crop at one market') plus the unit (ZAR per kg), which is more than a restatement of the name. The phrase 'at one market' implicitly contrasts with compare_markets, though the sibling is not named.

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: 'at one market' suggests a single-market lookup as opposed to a multi-market comparison, and the marketId schema note points to list_markets for discovery. No explicit when-to-use or when-not-to-use statement is given.

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.