teamspend
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| CODEX_HOME | No | Overrides the Codex CLI home directory (default ~/.codex). | |
| XDG_CONFIG_HOME | No | Overrides the base config directory for Claude Code (and other tools). | |
| CLAUDE_CONFIG_DIR | No | Overrides the Claude Code configuration directory (default ~/.claude). | |
| OPENCODE_DATA_DIR | No | Overrides the OpenCode local data directory (default ~/.local/share/opencode/storage/). | |
| TEAMSPEND_COPILOT_ORG | No | Your GitHub org login. | |
| TEAMSPEND_CURSOR_TOKEN | No | Cursor Admin API key. | |
| TEAMSPEND_COPILOT_TOKEN | No | GitHub token with read:org scope or fine-grained 'View Organization Copilot Metrics' permission. | |
| TEAMSPEND_CLAUDE_CODE_TOKEN | No | Anthropic Admin/Analytics API key. | |
| TEAMSPEND_COPILOT_SEAT_PRICE_USD | No | Optional flat seat price per user for Copilot; if set, added once per active user for the whole comparison window. |
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": false
} |
| prompts | {
"listChanged": false
} |
| resources | {
"subscribe": false,
"listChanged": false
} |
| experimental | {} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| runA | Compare AI-coding-tool spend between a "before" and "after" date window across two tools, using each vendor's own admin/analytics API (or local session logs for the credential-free Prerequisites: the two admin API tokens for whichever tools are being compared must already be set as environment variables in the server's process (e.g. TEAMSPEND_CURSOR_TOKEN, TEAMSPEND_CLAUDE_CODE_TOKEN, TEAMSPEND_COPILOT_TOKEN + TEAMSPEND_COPILOT_ORG); claude-code-personal needs no token since it reads local session logs instead. Missing credentials do not raise an exception -- the tool still returns successfully, with a Behavioral notes: this makes outbound network calls to the relevant vendor APIs (skipped for claude-code-personal) and is read-only against the user's own systems, but it also writes a Parameter: Returns a dict parsed from the CLI's own |
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 1 tool
With only a single tool, there is no possibility of confusing it with another. The tool's description clearly limits its purpose to a specific before/after cost comparison, so an agent cannot misselect it for anything else.
There is only one tool named 'run', so there is no inconsistency in naming conventions. However, the name is very generic and does not convey the tool's specific function, which is a minor weakness since a descriptive name would be more helpful.
The server exposes only one tool, which is below the typical 3-15 range. While the tool is substantial and covers a focused use case, the single-tool surface feels thin for a server, though it is not an extreme mismatch because the tool is not trivial.
Within its declared scope of comparing AI-coding-tool spend between two windows, the tool provides a complete workflow including error handling for missing credentials and a report file. Minor gaps like lacking multi-tool comparison or raw spend analytics don't affect its stated purpose.