Skip to main content
Glama
ameernoufil

Angel One Mcp

by ameernoufil

estimate_margin

Calculate margin needed for a batch of prospective orders to prevent shortfalls before placing trades.

Instructions

Calculate margin requirements for a batch of potential orders before placing them.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
positionsYesJSON array of position objects. Each: { "exchange": "NSE", "qty": "10", "price": "100.5", "productType": "INTRADAY", "token": "3045", "tradeType": "BUY" }
Behavior3/5

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

The description conveys that this is a calculation/estimation tool and implies it does not place orders, which is useful. However, with only openWorldHint annotation, the burden is on the description to disclose side effects, auth requirements, or return behavior, none of which are addressed beyond the basic calculation intent.

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 single, clear sentence with no redundant words. It is front-loaded with the key action ('Calculate margin requirements') and immediately provides context ('before placing them').

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 one-parameter tool with a well-documented schema, the description is sufficiently complete for basic usage. It lacks detail about the exact nature of the margin (e.g., span vs exposure) or the return format, but since there is no output schema requirement, the description covers the essential function adequately.

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?

The schema description for the 'positions' parameter is comprehensive (100% coverage), providing JSON structure and field details. The tool description adds no additional parameter-level meaning beyond what the schema already supplies, so the baseline of 3 is appropriate.

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 states a specific verb ('calculate') and resource ('margin requirements') with a clear scope ('for a batch of potential orders before placing them'). It effectively distinguishes from siblings like estimate_charges and order-related tools.

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?

The phrase 'before placing them' provides clear context for when to use this tool, distinguishing it from order placement tools. However, it does not explicitly mention alternatives or exclusion criteria, such as when to use estimate_charges instead, which would make it fully explicit.

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/ameernoufil/angel-one-mcp'

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