Skip to main content
Glama

get_buy_deadline

Returns the last day to buy a stock and still receive its upcoming dividend, considering T+2 settlement. Indicates if no dividend is upcoming.

Instructions

For a symbol with an upcoming dividend, return the last day you can buy and still be entitled to the dividend (T+2 settlement applied).

Returns 'no upcoming dividend' if the symbol isn't currently in the PSX payouts table.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
symbolYes
Behavior4/5

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

With no annotations, the description carries full burden. It discloses the T+2 settlement rule and the special return string. It does not specify output format (e.g., date format) but adequately conveys the behavior for a simple query tool.

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 two sentences, front-loaded with the main purpose, and includes the alternative outcome. No extraneous words; every sentence adds value.

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?

Given the tool's simplicity (one parameter, no output schema), the description covers core functionality and edge case. It could specify the output format (e.g., date string) but is otherwise complete.

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?

The single parameter 'symbol' is implied in the description as a stock ticker. The description adds meaning by explaining it must be in the PSX payouts table. With 0% schema coverage, the description compensates well.

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 tool returns the last buy date for a symbol with an upcoming dividend, applying T+2 settlement. The verb 'return' and resource 'buy deadline' are specific, and the tool is well-distinguished from siblings like get_upcoming_dividends and get_dividend_history.

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 description specifies the tool is for symbols with upcoming dividends and details the 'no upcoming dividend' case. However, it does not explicitly contrast with siblings like get_dividend_history or screen_dividend_stocks, leaving some implicit guidance.

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/revolutionarybukhari/psx-mcp'

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