Skip to main content
Glama
borgels

mcp-server-telgea

by borgels

Set Cost Threshold

telgea_set_cost_threshold

Set a monthly spend cap for DATA, international VOICE, SMS, or MMS usage at organisation, team, or user level; reaching the cap pauses that usage, and the response notes if it applies from next month.

Instructions

Set a monthly spend cap on DATA, VOICE (international), SMS or MMS for the organisation, a team or a user. Reaching it pauses that usage. Requires TELGEA_ENABLE_WRITES=true on the server. May apply from next month; the result says so (appliesFromNextMonth).

Input Schema

NameRequiredDescriptionDefault
teamIdNoTeam the threshold is for. Omit teamId and userId for the organisation.
userIdNoUser the threshold is for. Omit teamId and userId for the organisation.
maxAmountYesMonthly cap in the organisation’s currency.
usageTypeYesVOICE means international calling.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.4/5.0
Behavior5/5

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

Annotations only declare the generic profile (readOnly=false, destructive=false, idempotent=false, openWorld=true); the description goes well beyond with the actual side effect of hitting the cap, the server-side write flag required to execute, and the delayed-effective-date behavior disclosed via the appliesFromNextMonth result field. That is exactly the auth/precondition/aftermath context the annotations cannot express.

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 action and scope, then enforcement consequence, then prerequisite and timing caveat. No sentence is redundant and nothing is buried.

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 one result field an agent must check (appliesFromNextMonth). For a mutation tool it covers consequences, prerequisites, and timing; it could still state whether re-setting overwrites an existing threshold and whether a threshold identifier is returned.

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%, so the schema already documents teamId/userId omission semantics, maxAmount currency basis, and the VOICE enum meaning. The description's mention of scope targets and usage types largely restates that, adding no format or constraint detail beyond the schema — the baseline 3 applies.

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?

States a specific verb and resource ("Set a monthly spend cap") and names the exact scope options (organisation, team, user) plus the covered usage types. This clearly distinguishes it from read-side siblings like telgea_list_cost_thresholds, telgea_get_user_cost_threshold, and the destructive telgea_remove_cost_threshold.

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?

Gives the operational consequence ("Reaching it pauses that usage") and the hard prerequisite (TELGEA_ENABLE_WRITES=true), which tells the agent when the call will fail. It stops short of explicitly routing to siblings — e.g. to inspect existing caps before setting, use telgea_list_cost_thresholds, or to undo, use telgea_remove_cost_threshold.

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