Skip to main content
Glama

SLDX API

Histórico de preços de uma ação

get_stock_history
Read-onlyIdempotent

Retorna a série histórica de preço (ou high/low/volume) de uma ação B3 num período escolhido. Períodos longos (6m, 1y) retornam apenas um ponto por semana. 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_history"
  }
}

Input Schema

NameRequiredDescriptionDefault
fieldNoCampo a ser retornado na série (padrão: price)
periodNoPeríodo do histórico (padrão: 1y)
tickerYesCódigo do ticker, ex: PETR4

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?

Beyond the readOnly/idempotent annotations, the description discloses two things structured data cannot: long periods (6m, 1y) are downsampled to one point per week, and each call costs 1 credit. That is exactly the kind of cost and data-granularity context an agent needs before choosing a period. It does not describe error behavior or rate limits, keeping it short of a 5.

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?

Three short sentences with the core action first, followed by the two constraints that actually change how a call should be made. Every sentence carries information not available elsewhere; 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 no output schema, the description should hint at return shape, and it does (a point series, weekly for long periods). For a three-parameter read tool with full annotation coverage this is nearly sufficient; only the ticker scope (B3 only) and default values are left to inference.

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%, so the schema already documents all three parameters and their enums, making 3 the baseline. The description adds granularity meaning to the period values via the weekly-downsampling note, but it labels the field values 'high/low/volume' while the schema enum is 'high_24h'/'low_24h', and it omits the schema's defaults (price, 1y) instead of reinforcing or clarifying them.

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 gives a specific verb and resource — return a historical price series for a B3 stock — plus the selectable fields and the period input. It implicitly separates itself from get_stock_price (current quote) by the word 'histórica', but never names a sibling to confirm the boundary.

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: an agent infers this is the tool for past data, with get_stock_price the natural alternative for current data, but that alternative is never stated. No when-not-to-use guidance, no note that non-B3 tickers belong to get_international_stock.

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.