Skip to content

Reduce token used for different MCP commands #75

@Adam-it

Description

@Adam-it

Update 1

What we need to do is ensure that if the command output is JSON, or when handling output for the all commands tool which is always JSON, we should trim all spaces and break lines to make the JSON compact as it is returned as text to the LLM.

deprecated

We use different outputs for different MCP commands
For example getting all CLI commands uses JSON output mode which might be not most effective. Maybe using toon in this case would be better.

For CLI command response we try to ensure JSON. First if all we should always use JSON compact in this case.
Also for some commands like list command types, JSON might not be the best option and maybe we should recheck If using text or csv output mode would use less tokens, or maybe also toon.

Let's research the tokens used for different output modes and decide on the way to go

Metadata

Metadata

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions