Skip to main content
Glama

budget_spend

Spend tokens from an agent's budget to control resource usage in AI workflows. Returns authorization status and remaining balance for budget enforcement.

Instructions

Spend tokens on behalf of an agent. Returns allowed/denied with remaining balance.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
agent_idYesThe agent spending tokens
tokensYesNumber of tokens to spend (positive integer)

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/Jovancoding/network-ai'

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