Skip to main content
Glama
Amaretto-Software-Labs

AI Admin API MCP Server

ai_admin_query_usage

Read-only

Query normalized usage facts from enabled AI providers. Pass provider-specific options to filter data by date range and provider.

Instructions

Query normalized usage facts from one or more enabled providers. Pass provider-specific options under provider_options[provider_id].

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
endYes
startYes
providersNo
include_rawNo
bucket_widthNo1d
credential_refsNo
provider_optionsNo
Behavior3/5

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

Annotations already declare readOnlyHint=true, so the safe read-only nature is covered. The description adds context about passing provider-specific options via provider_options[provider_id], but does not disclose rate limits, pagination, or return format.

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?

Two sentences, each earning its place. The first states the purpose; the second gives a direct usage tip. No redundant wording or filler.

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

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the tool's complexity (7 parameters, nested objects, no output schema), the description is too sparse. It omits critical context about the date range, provider selection, raw data inclusion, bucket widths, credential references, and expected response shape.

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

Parameters2/5

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

Schema description coverage is 0%, and the description only explains provider_options. The other six parameters (start, end, providers, include_raw, bucket_width, credential_refs) remain completely undocumented, leaving the agent without guidance on their meaning or usage.

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 'Query' and the resource 'normalized usage facts' from 'one or more enabled providers', which is specific and distinguishes it from sibling tools like query_costs and query_dashboard_bundle.

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

Usage Guidelines3/5

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

The description implies its use for querying usage data but does not explicitly contrast it with alternatives or state when not to use it. No exclusions or alternative tool references are provided.

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/Amaretto-Software-Labs/ai-admin-api-mcp'

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