-
Notifications
You must be signed in to change notification settings - Fork 231
Description
Using Azure MCP in Claude Code I ran into a limitation - claude only allows 25,000 tokens from tool responses.
I'm not sure why the subscription_list tool returned 44,221 tokens (all my subs?), but we may want to add an azmcp argument to limit the number of tokens (should probably use characters/words so we don't have to tokenize).
Here's the error:
(.venv) charris@CHARRIS02:~/git/zava-photos$ claude
╭───────────────────────────╮
│ ✻ Welcome to Claude Code! │
│ │
│ /help for help, /status for your current setup │
│ │
│ cwd: /home/charris/git/zava-photos │
╰───────────────────────────╯what is my azure subscription?
● I'll check your Azure subscription using the Azure CLI.
● azure-mcp - Azure CLI Command (MCP)(command: "account show")
⎿ No (tell Claude what to do differently)isn't there a subscription tool?
● Yes, you're right! Let me use the Azure subscription tool to list your subscriptions.
● azure-mcp - subscription (MCP)(intent: "list my azure subscriptions", command: "list", parameters: {})
⎿ Here are the available command and their parameters for 'subscription' tool.
If you do not find a suitable command, run again with the "learn=true" to get a list of available commands and thei
r parameters.
… +55 lines (ctrl+r to expand)
● azure-mcp - subscription (MCP)(intent: "list my azure subscriptions", command: "subscription_list", parameters: {})
⎿ Error: MCP tool "subscription" response (44221 tokens) exceeds maximum allowed tokens (25000). Please use pagination,
filtering, or limit parameters to reduce the response size.● The response is too large. Let me try a more direct approach with the Azure CLI to get just the current subscription:
Metadata
Metadata
Assignees
Labels
Type
Projects
Status