Skip to main content
Glama
underdog-api-mcp

underdog-api-mcp

Official

Credit costs (keyless)

credit_costs
Read-onlyIdempotent

Check the credit policy or credits a request will cost before running a large keyed read; omit the path to view the whole policy.

Instructions

The credit policy, or the credits one request would cost before you run it. Use it before a large keyed read. No key, no credits.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "credit_costs"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathNoRequest path with its query string, for example /api/v1/projections?limit=200. Omit for the whole policy.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / path / description
      Previous value: -"Request path with query string"New value: +"Request path with its query string, for example /api/v1/projections?limit=200. Omit for the whole policy."
  2. First observedv0.1.0

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already cover read-only, idempotent, non-destructive behavior. The description adds real value beyond them by stating 'No key, no credits' — this is an unauthenticated, cost-free pre-flight call — and that omitting the path returns the whole policy. It does not describe the shape of the returned cost figure or how estimates are bounded.

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?

Three short sentences, front-loaded with what the tool returns before the usage hint. Slightly telegraphic phrasing ('The credit policy, or the credits...') costs a little clarity but nothing is wasted.

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 one-optional-parameter read-only tool with no output schema, the definition covers both call modes, cost implications, and authentication requirements. Remaining gaps — return format and how the estimate is derived — are minor at this complexity.

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 coverage is 100% and the single optional path parameter is already documented with a format example and the omit-for-whole-policy rule. The description adds no syntax or matching rules beyond what the schema provides, so baseline 3 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific resource (the credit policy) and a specific derived value (the credits one request would cost) via a named input. The dual mode is slightly compressed into one clause, but an agent can tell this is a pre-flight cost lookup, not a data read.

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

Usage Guidelines3/5

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

'Use it before a large keyed read' gives one concrete when-to-use condition. It offers no when-not guidance, no statement about whether it is required or merely advisory, and no alternatives for agents that cannot supply a path.

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