Skip to main content
Glama

Get item usage

get_item_usage
Read-onlyIdempotent

AI cost of one work item: the rolled-up call count, tokens and cost for a todo or calendar event, plus the individual calls attributed to it.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "subject_type": "<subject_type>",
      "subject_id": "<subject_id>"
    },
    "name": "get_item_usage"
  }
}

Input Schema

NameRequiredDescriptionDefault
subject_idYesId of the todo or event
subject_typeYestodo | event

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, closed-world and non-destructive behavior, so the safety profile is covered. The description adds value beyond that by disclosing the shape of the result — an aggregate summary plus a per-call breakdown — which is important since no output schema exists. It stops short of stating whether there is a time window or what currency the cost uses.

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?

A single sentence that front-loads the core concept ('AI cost of one work item') and then qualifies it with the returned fields. There is no filler and no repetition of the title.

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 simple two-parameter read tool with full schema coverage and annotations, the description covers purpose, scope and return shape adequately. The main residual gap is the aggregation window and cost units, which matter for a cost-reporting tool but are not addressed.

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 100% and both parameters are documented with their accepted values (todo | event). The description's 'for a todo or calendar event' merely restates the schema constraint, adding no new syntax or semantic detail. A baseline 3 is appropriate.

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 names a specific resource ('AI cost of one work item') and enumerates exactly what comes back: rolled-up call count, tokens, cost, plus the individual calls attributed to the item. No sibling tool in the list deals with usage or cost, so an agent can identify this unambiguously.

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 phrase 'one work item' implicitly scopes the tool to single-item lookups rather than bulk or cross-item analysis, which is useful inference. However, there is no explicit when-to-use statement, no mention of what to call for aggregate or per-user cost, and no note of prerequisites or edge cases.

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