Skip to main content
Glama
fipiran-mcp

fipiran-mcp

by sepehr071

Index history

fp_index_history
Read-onlyIdempotent

Retrieve daily history for a market or industry index, oldest first, with up to 60 evenly spaced points and optional value or returns series. Use it after fp_indices to view index trends.

Instructions

Get the daily history of one market or industry index, oldest first, at most 60 evenly spaced points.

Use after fp_indices. The value series also has the change over the window.

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": {
      "ins_code": "<ins_code>"
    },
    "name": "fp_index_history"
  }
}

Input Schema

NameRequiredDescriptionDefault
daysNoLatest trading days (about 250 per year).
seriesNovalue: daily close, low, high. returns: six rolling returns (percent).value
ins_codeYesins_code from fp_indices, e.g. '32097828799138957' (total index).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changedv0.2.0
    • changedInput schema / properties / days / description
      Previous value: -"Latest trading days to cover (about 250 per year)."New value: +"Latest trading days (about 250 per year)."
    • changedInput schema / properties / ins_code / description
      Previous value: -"Index ins_code from fp_indices, e.g. '32097828799138957' (total index)."New value: +"ins_code from fp_indices, e.g. '32097828799138957' (total index)."
    • changedInput schema / properties / series / description
      Previous value: -"value: daily close with the day's low and high. returns: the six rolling returns (percent)."New value: +"value: daily close, low, high. returns: six rolling returns (percent)."
  2. First observedv0.1.0

TDQS

A4/5.0
Behavior4/5

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

Annotations already establish read-only, idempotent, open-world, and non-destructive behavior. The description adds useful behavioral detail beyond annotations: results are oldest first, capped at 60 evenly spaced points, and the value series includes change over the window.

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 the core operation and scope. Every sentence carries useful information without repetition.

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 read-only history tool with rich annotations and fully described parameters, the description covers the essential behavior and prerequisite. It could say slightly more about the returns series or output shape, but no output schema exists and the input schema already covers series semantics.

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%, so the schema already documents days, series, and ins_code thoroughly. The description adds no parameter-specific meaning beyond the schema; its extra sentence concerns return content rather than parameter semantics.

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 daily history for one market or industry index. It also specifies ordering (oldest first) and a maximum of 60 evenly spaced points, though it does not explicitly distinguish itself from the sibling fp_history tool.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

"Use after fp_indices" gives a clear prerequisite and implies the caller first needs an ins_code from that tool. It does not name alternatives or when not to use this tool, so it stops short of full routing guidance.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.