Skip to main content
Glama
surplus-mcp

surplus-mcp

Official
by surplusrh

Surplus usage

get_usage
Read-only

Lists recent API requests billed to the configured key, newest first, with model, tokens, and cost to help review spending.

Instructions

List the most recent requests billed to the configured API key, newest first, with model, tokens and cost.

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": "get_usage"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoHow many rows, 1–100 (default 20)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and openWorldHint=true, so safety is covered; the description adds real behavioral value beyond them by disclosing sort order (newest first) and the shape of each row (model, tokens, cost). It still omits how far back the data goes or whether older requests are reachable, which matters for a "most recent" listing.

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?

One sentence, front-loaded with the verb and resource, with ordering and row contents appended compactly. No filler and nothing that could be trimmed without losing information.

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?

There is no output schema, and the description compensates by naming the returned fields, which is the key missing piece for this simple one-parameter read tool. Retention window or pagination behavior would make it fully complete, but nothing needed to invoke it correctly is absent.

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?

With a single parameter at 100% schema description coverage, the schema already explains limit (1–100, default 20). The description adds no further meaning such as what happens when limit exceeds available rows, so the 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?

"List the most recent requests billed to the configured API key" gives a specific verb (List) and a precisely scoped resource, plus ordering (newest first) and returned fields. It does not differentiate itself from siblings such as get_balance or get_tee_receipt, so an agent must infer the boundary from the names alone.

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?

The scope phrase "billed to the configured API key" implies the usage context, but there is no explicit when-to-use guidance, no statement of when another tool (e.g. get_balance for totals) would be better, and no exclusions. Usage is inferable rather than stated.

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

Deploy Server

Other Tools