Skip to main content
Glama

tool_calculate_points_or_cash

Evaluate whether to pay cash or use points for a booking. Considers cents per point, opportunity cost, and points earned on cash payment to provide a clear recommendation.

Instructions

Should I pay cash or use points? Factors in cpp value, opportunity cost, and points-back earning on the cash payment. Returns a clear recommendation.

Args: cash_price: Cash price for the booking points_price: Points/miles price for the same booking program: Points program (e.g., "chase_ur", "united_mp") category: Spending category if paying cash (e.g., "travel", "dining") — affects earning calc card_key: Specific card to calculate earning (e.g., "chase_sapphire_reserve") currency: Cash price currency taxes_fees_on_award: Cash taxes/fees on the award redemption

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
cash_priceYes
points_priceYes
programYes
categoryNo
card_keyNo
currencyNoUSD
taxes_fees_on_awardNo
Behavior3/5

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

No annotations are provided, so the description carries the full burden. It discloses that the tool factors in specific elements and returns a recommendation, but it does not mention whether it accesses external data, modifies any state, or has limitations (e.g., accuracy assumptions). The description gives some behavioral context but lacks completeness for a fully transparent disclosure.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is well-structured with a concise introductory sentence and a clearly formatted Args block. It is front-loaded with the decision question. The Args block is somewhat lengthy but necessary given the lack of schema descriptions. No superfluous sentences.

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 7 parameters, 0% schema coverage, no output schema, and no annotations, the description covers the essential purpose and parameter semantics well. It lacks details about the output format (the 'recommendation') and potential error cases, but for a calculation tool, this is acceptable. The description is largely complete for effective use.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, but the description compensates fully by providing detailed parameter explanations in the Args block. Each parameter is explained with its role, examples (e.g., programs, categories), and context (e.g., 'taxes_fees_on_award' default 0). This adds significant meaning beyond the bare type information in the schema.

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 that the tool decides between cash and points for a booking, and returns a recommendation. The verb 'calculate' and the specific resource 'points_or_cash' make the purpose unambiguous. It is distinct from sibling tools like estimate_points_value or compare_points_programs, which do not directly compare cash vs points for a given booking.

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 implies usage for making a cash-vs-points decision by listing factors considered (cpp, opportunity cost, points-back earning). It does not explicitly state when not to use it or suggest alternatives, but the context is clear given the tool's purpose.

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/VirajMishra1/wander-agent'

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