Skip to main content
Glama

update_usage_limit

Update a usage limit's name, credit limit, alert threshold, or reset schedule by ID. Changes apply immediately without clearing accumulated usage.

Instructions

Update a usage limit's name, credit_limit, alert_threshold, reset schedule, or reset target by id, unlike update_rate_limit which tunes request throttling. New values apply immediately to tracked usage, conditions and group_by are immutable after creation, and the call returns the updated id without clearing accumulated usage (use reset_usage_limit_entity for that).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idYesThe unique identifier of the usage limit
nameNoNew name for the usage limit
credit_limitNoNew maximum allowed usage value
alert_thresholdNoNew alert threshold percentage (0-100)
periodic_resetNoNew periodic reset schedule
reset_usage_for_valueNoReset usage counters for a specific group_by value

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
okYesWhether the tool call succeeded and returned structured data
dataNoStructured success payload when ok is true
errorNoStructured error payload when ok is false
Behavior4/5

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

The description adds behavioral context beyond annotations: 'New values apply immediately to tracked usage', 'conditions and group_by are immutable after creation', and 'returns the updated id without clearing accumulated usage'. It aligns with annotations (readOnlyHint=false, destructiveHint=false) and provides useful caveats.

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?

The description is a single sentence that packs purpose, sibling distinction, usage notes, and behavioral caveats without redundancy. It is efficient, though breaking into multiple sentences could improve readability slightly.

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?

The description covers the tool's purpose, parameters, sibling differentiation, and key behavioral traits (immediate application, immutability, no usage reset). With an output schema present and good annotations, it provides a solid understanding for an agent.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

While the schema has 100% coverage on parameter descriptions, the description adds value by grouping the updatable fields and noting immutability of certain fields. This helps the agent understand which parameters can be modified and which cannot, enhancing the schema info.

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 clearly states the verb 'Update' and the specific resource 'usage limit' along with the fields that can be updated. It also contrasts with the sibling tool 'update_rate_limit' by noting it tunes request throttling, making the purpose distinct.

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

Usage Guidelines5/5

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

The description provides explicit guidance: it says to update 'by id' and contrasts with 'update_rate_limit'. It also notes that 'conditions and group_by are immutable after creation' and directs to 'reset_usage_limit_entity' for resetting usage, indicating when not to use this tool.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/s-b-e-n-s-o-n/portkey-admin-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server