Skip to main content
Glama
Mofesto

ctbcsec-api-mcp-server

by Mofesto

futopt_query_oi

Retrieve open interest positions for futures and options using account ID and trade date. Query with force refresh for current data.

Instructions

Query futures/options open interest.

Args: account_id: Account ID trade_date: Trading date (defaults to today) force_query: True to force refresh, False to use cache

Returns: Open interest positions

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
account_idYes
trade_dateNo
force_queryNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
dataNoQuery result data
messageNoResponse message or error description
successYesWhether the query succeeded
event_idNoEvent ID from response
Behavior4/5

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

The description adds behavioral context by explaining the force_query parameter ('True to force refresh, False to use cache') and the trade_date default ('defaults to today'). Since annotations are absent, this information helps the agent understand caching and default behavior.

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?

The description is a compact docstring with a one-line purpose, followed by parameter explanations and return type. It is front-loaded, free of fluff, and every sentence contributes useful information.

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?

The description covers purpose, parameters, and returns. It does not mention prerequisites like login, but the sibling tools suggest connectivity is separate. With an output schema present and parameters well-covered, this is sufficiently complete for a simple query tool.

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?

All three parameters are described in plain language, with meaningful interpretation for force_query (refresh vs cache) and trade_date (defaults to today). This adds value beyond the bare schema titles, though it does not detail formats or constraints.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the function with a specific verb and resource: 'Query futures/options open interest.' This distinguishes it from sibling tools like futopt_query_order (queries orders) and futopt_query_match (queries matches).

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 usage is implied by the tool's name and description but no explicit guidance is given about when to choose this over alternatives, nor are any exclusions or prerequisites mentioned. A clear statement like 'use for checking open interest positions' would improve this.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Mofesto/ctbcsec-api-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server