Skip to main content
Glama

Get usage for one line

get_number_usage
Read-onlyIdempotent

This month's calls and minutes for one phone line, broken down by call result.

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": {
      "phone_number_id": "<phone_number_id>"
    },
    "name": "get_number_usage"
  }
}

Input Schema

NameRequiredDescriptionDefault
workspace_idNoLeave empty to act in the connected organization, which is the usual case. Set it only when the user names another store or location: its id from list_workspaces or create_workspace.
phone_number_idYesThe line's id from list_phone_numbers (a small number like 42, not the phone number itself)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / workspace_id / description
      Previous value: -"Act in one of this organization's workspaces (id from list_workspaces or create_workspace). Leave empty to act in the connected organization."New value: +"Leave empty to act in the connected organization, which is the usual case. Set it only when the user names another store or location: its id from list_workspaces or create_workspace."
  2. Added

TDQS

B3.2/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true and destructiveHint=false, so the safety profile is supplied elsewhere. The description adds genuine behavioral context beyond that: the time window is fixed to the current month and the figures are grouped by call result. It says nothing about freshness/lag of the data, rate limits, permissions, or what happens when a line has no activity this month, which are the remaining gaps for an openWorld read tool.

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?

A single tight sentence with the time scope and the resource front-loaded, and no filler. It is efficient, though the terseness leaves the usage-guidance gap that a second sentence could have closed.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/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-only tool with fully documented parameters and no output schema, the description covers what the tool returns conceptually (calls, minutes, grouped by call result). It does not describe the response shape or the fields under each call result, and with no output schema the agent has no structured substitute for that. Adequate, but thin for a tool whose output the agent must interpret.

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%; both parameters carry their own descriptions, including the explicit warning that phone_number_id is a small internal id rather than the phone number, and the workspace_id defaulting rule. The description adds no parameter meaning at all, which is acceptable given the schema does the work, 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?

The description names a specific resource and scope: 'This month's calls and minutes for one phone line, broken down by call result.' That is a clear verb-less but unambiguous statement of what the tool returns, and 'for one phone line' distinguishes it in scope from a broader usage tool. It stops short of naming the sibling get_usage as the aggregate alternative, so differentiation is implied rather than stated.

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

Usage Guidelines2/5

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

There is no when-to-use or when-not-to-use guidance. A sibling named get_usage exists, and the description never says whether to call that one for org-wide totals and this one for a single line, nor does it state prerequisites such as needing an id from list_phone_numbers. The agent must infer routing from the title and the phrase 'one phone line' alone.

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