Skip to main content
Glama

SLDX API

Preço de ação B3

get_stock_price
Read-onlyIdempotent

Retorna o preço atual, variação de 24h, máxima/mínima e dados básicos de uma ação listada na B3. Adicione sufixo 'f' para mercado fracionário (ex: petr4f). 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": {
      "ticker": "<ticker>"
    },
    "name": "get_stock_price"
  }
}

Input Schema

NameRequiredDescriptionDefault
tickerYesCódigo do ticker, ex: PETR4, VALE3, HGLG11, PETR4F

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, openWorldHint and idempotentHint, so safety and idempotence need no restating. The description adds value beyond them by disclosing the cost model ('Custa 1 crédito por chamada') and by enumerating what the response contains. It stops short of stating data freshness/delay or what happens for an invalid ticker, which would matter for a live quote.

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 tight sentences: content of the response first, then the ticker convention, then the price. Every sentence carries non-redundant information and nothing is padded.

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?

With a single required parameter and no output schema, the description covers the essentials by enumerating the returned fields and the credit cost. The remaining gap is behavioral edge cases — stale data, invalid tickers, or failure modes for an open-world lookup — which keeps it from a 5.

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 100% and the schema already lists ticker examples, so the baseline would be 3. The description goes further by explaining the semantic rule behind the 'f' suffix (fractionary market), which is a naming convention an agent could not reliably infer from the example alone.

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 concrete verb and resource ('Retorna o preço atual, variação de 24h, máxima/mínima e dados básicos de uma ação listada na B3'), which clearly delimits it as a quote tool rather than a fundamentals/history tool. It never names a sibling such as get_stock_history or get_stock_fundamentals, so the differentiation is implicit rather than explicit.

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 description gives one concrete usage instruction — append the 'f' suffix for the fractionary market, with a worked example — which is genuinely actionable. However, it offers no guidance on when to prefer this over get_stock_information or get_stock_history, and no when-not conditions.

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.