Skip to content

MCP get_hierarchy command Eats up too much tokens for Semantic search. Please Improve this. #317

@Aloim

Description

@Aloim

The get_hierarchy command does eat ALOT of tokens. and i often exceed it. To be fair, I do use the Semantic search which is the most costly one. But still I'd be happy if you could optimize the command somehow for Semantic searches. Or make a fallback that if the max tokensize is exceeded it uses "cheaper" search methods automatically / asks the user if it should do that instead.

here an example from claudecode:

 ● UnityMCP - manage_scene (MCP)(action: "get_hierarchy")
  ⎿  Error: MCP tool "manage_scene" response (29320 tokens) exceeds maximum allowed tokens (25000). Please use pagination, filtering, or limit parameters to
     reduce the response size. 

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions