openai-usage-mcp
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| OPENAI_ADMIN_KEY | Yes | Your OpenAI Admin API key |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
This server publishes no instructions, or was last inspected before Glama recorded them.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": true
} |
| logging | {} |
| prompts | {
"listChanged": false
} |
| resources | {
"subscribe": false,
"listChanged": false
} |
| extensions | {
"io.modelcontextprotocol/ui": {}
} |
| experimental | {} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| costsA | Query OpenAI dollar-amount spend data. USE THIS TOOL FOR:
DO NOT USE THIS TOOL FOR:
DETAIL LEVELS:
DEFAULTS: detail_level='summary', group_by='line_item', top_n=10, end_time=today EXAMPLES:
Dates in YYYY-MM-DD format. |
| usageA | Query OpenAI token and request usage data by service type. USE THIS TOOL FOR:
DO NOT USE THIS TOOL FOR:
SERVICE TYPES: completions, embeddings, images, audio_speeches, audio_transcriptions, moderations, vector_stores, code_interpreter_sessions DETAIL LEVELS:
DEFAULTS: detail_level='summary', bucket_width='1d', top_n=10, end_time=today EXAMPLES:
Dates in YYYY-MM-DD format. |
| cost-comparisonA | Compare OpenAI costs between two months to identify spending changes. USE THIS TOOL FOR:
DO NOT USE THIS TOOL FOR:
PARAMETERS:
OUTPUT includes:
EXAMPLES:
|
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
TDQS
Scored across 3 tools
Each tool has a clearly distinct purpose: costs for dollar spend, usage for token/request counts, and cost-comparison for month-over-month variance. The descriptions explicitly cross-reference 'DO NOT USE THIS TOOL FOR' statements, eliminating ambiguity.
Tool names are primarily single-word nouns (costs, usage) with one hyphenated compound (cost-comparison). While not following a verb_noun pattern, the names are short and readable, though the hyphen introduces a minor inconsistency.
Three tools is a well-scoped count for an OpenAI usage/cost tracking server. Each tool covers a distinct aspect of the domain (cost, usage, comparison) and fits within the ideal 3-15 tool range.
The surface covers the core domain of cost and usage tracking, including summary, daily, and raw detail levels, plus month-over-month cost comparison. Missing a dedicated usage-comparison tool or project/service listing, but these are minor and can be worked around via parameters.