Skip to main content
Glama

SLDX API

Preço de commodities

get_commodity_price
Read-onlyIdempotent

Retorna dados de mercado (preço, variação 24h, volume) de uma ou mais commodities, como ouro (GOLD), petróleo (OIL), soja (SOJA), etc. Custa 1 crédito por chamada.

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": {
      "codes": "<codes>"
    },
    "name": "get_commodity_price"
  }
}

Input Schema

NameRequiredDescriptionDefault
codesYesCódigos em maiúsculo separados por vírgula, ex: 'GOLD,OIL'

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 readOnly, idempotent and openWorld, so the safety profile is covered. The description does add genuinely useful context beyond them: the per-call cost of 1 credit and the shape of the payload (price, 24h change, volume). It says nothing about failure behavior for unknown codes or how prices are denominated.

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, front-loaded with what is returned followed by the credit cost. There is no filler and every clause carries information an agent needs.

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 with no output schema, the description supplies the return fields and the billing cost, which is enough to call it correctly. Minor omissions remain: no mention of what happens with invalid codes or units/currencies of the returned prices.

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% and the single 'codes' parameter is fully documented in the schema, including the comma-separated uppercase format. The description's phrasing 'uma ou mais commodities' reinforces the multi-code usage, but that is already conveyed by the schema example, so this is baseline.

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?

Names a specific verb and resource ('Retorna dados de mercado ... de uma ou mais commodities') and enumerates both the returned fields and example codes (GOLD, OIL, SOJA). It does not, however, distinguish itself from get_stock_price or get_currency_quote, so an agent must infer the boundary itself.

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 through the commodity examples; nothing states when to pick this over get_stock_price or other market-data siblings, nor any precondition such as valid code formats or unsupported commodities. The examples do give an agent enough to form a correct first call, which keeps this above a 2.

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.