Skip to main content
Glama

Estimate snack cost

estimate_snack_cost
Read-only

Estimate the credit cost of a snack generation BEFORE running it. Base is 23 credits; excluding 'ai-ugc' saves 5; server-side render adds 3. No credits spent, no I/O.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
renderNo
excludeNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
baseYes
creditsYes
aiUgcDiscountAppliedYes
renderSurchargeAppliedYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and destructiveHint=false, so the safety profile is covered. The description adds important behavioral context: 'No credits spent, no I/O' and a pricing model. It does not mention auth requirements or rate limits, but the added side-effect clarity is valuable.

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?

Three short sentences, front-loaded with the core purpose and pricing formula. Every sentence adds useful information without waste.

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 tool has an output schema, so return values need not be explained. The description provides the base cost, key adjustments, and no-side-effect assurance. It is nearly complete, though it does not fully document all exclude enum values or default parameter behavior.

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?

Schema description coverage is 0%, so the description partially compensates by explaining that excluding 'ai-ugc' saves 5 credits and server-side render adds 3. It does not explain the full exclude enum or default behavior for either parameter, leaving gaps.

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 (estimate) and resource (credit cost of snack generation) with clear scope (before running it). It distinguishes this tool from generation siblings like generate_snacks by emphasizing estimation rather than execution.

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 running it' clearly signals when to use the tool: prior to generation. However, it does not explicitly name alternatives or state when-not to use it, leaving the routing to inference from sibling names.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources