Skip to main content
Glama

get_spending_data

Fetches current-cycle team spend data with options to filter by name or email, sort by amount, date, or user, and paginate results.

Instructions

Fetch current-cycle team spend (POST /teams/spend; query only).

Args: search_term: Filter by name/email. sort_by: One of amount, date, user (default date). sort_direction: asc or desc (default desc). page: 1-indexed page (default 1). page_size: Optional page size.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pageNo
sort_byNodate
page_sizeNo
search_termNo
sort_directionNodesc

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior3/5

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

Discloses that it is a POST endpoint used for querying only (read operation). Lacks details on authentication, rate limits, or error behavior. With no annotations, this is partial.

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?

Front-loaded with a concise purpose line, followed by a structured Args list. Every sentence adds value; no redundancy.

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?

Does not mention return format or pagination details, though an output schema exists. Given the absence of annotations, some behavioral gaps remain (e.g., no mention of sorting behavior when multiple pages).

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

Parameters5/5

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

The description fully explains each of the 5 parameters (search_term, sort_by, sort_direction, page, page_size), adding semantics beyond the schema (0% coverage). Clearly states filter options and defaults.

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?

Clearly states the tool fetches current-cycle team spend, using a POST endpoint. Distinguishes from sibling 'get_organization_spending_data' by focusing on team-level data.

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?

No explicit guidance on when to use this tool versus alternatives like 'get_organization_spending_data' or 'get_daily_usage_data'. Usage must be inferred from the name.

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/PhillipChaffee/cursor-api-mcp'

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