Skip to main content
Glama

Preview Order

preview_order
Read-onlyIdempotent

Check order pricing and fees without placing a trade. Get an estimated cost and buying-power comparison to ensure affordability before submitting an order.

Instructions

Asks the broker to price and validate an order WITHOUT placing it. Non-binding and safe. Returns the broker's estimated cost and transaction fee, plus a buying-power comparison. Use this before draft_order to check affordability and fees.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
actionYesBUY or SELL.
symbolYesTicker symbol (e.g. AAPL, MU).
quantityYesNumber of shares (fractional allowed).
order_typeNoLMT (Limit) or MKT (Market).LMT
limit_priceNoRequired when order_type is LMT.
Install Server

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, and destructiveHint=false, and the description reinforces this with 'Non-binding and safe' and 'WITHOUT placing it'. It adds new behavioral context by specifying the return values (estimated cost, transaction fee, buying-power comparison), which the schema and annotations do not convey.

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 three sentences, with the core purpose front-loaded. Every sentence contributes value: what it does, what it returns, and when to use it.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

The tool is simple, the schema is thorough, and the description covers purpose, safety, return info, and usage guidance. With annotations handling the safety profile, no critical gaps remain.

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?

Input schema describes all 5 parameters with 100% coverage. The description does not elaborate on parameter usage, but the schema already provides default values and constraints, so the baseline of 3 applies.

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 immediately identifies the tool as a validation/preview action ('price and validate an order WITHOUT placing it'), using a specific verb and resource. It clearly distinguishes from sibling draft_order by emphasizing no order is placed.

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

Usage Guidelines5/5

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

Explicitly instructs to 'Use this before draft_order to check affordability and fees', naming the alternative and providing a concrete use case. This exceeds a simple when-to-use statement.

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

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/Blahaj-gif/Finance-mcp'

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