Skip to main content
Glama
pwno-io

treesitter-mcp

by pwno-io

treesitter_get_supported_languages

Get a list of programming languages supported by the analyzer to check compatibility before parsing. Optionally write the output to a file to manage large result sets.

Instructions

Get a list of programming languages supported by the analyzer.

Args: output_file: If provided, writes result to this file instead of returning. Useful for large outputs to prevent context overload.

Returns: List of supported language names (e.g., ['python', 'c', 'cpp']) OR if output_file is set: {"status": "written", "output_file": "...", "bytes_written": N}

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
output_fileNo
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations provided, the description carries the full burden. It clearly explains two possible behaviors: returning a list of languages, or writing to a file if output_file is set, including the exact return structure in both cases. It also notes the rationale for output_file ('prevent context overload'), which adds useful behavioral context.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is well-structured: a one-line summary followed by Args and Returns sections. Despite being longer than a single-sentence description, every sentence earns its place, and the most important information (purpose and return) is front-loaded.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a simple tool with one optional parameter and no output schema, the description is complete. It covers purpose, parameter semantics, and both possible return shapes. No important information is missing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 0%, but the description fully compensates. It explains the output_file parameter's meaning (writes to file instead of returning), its use case (large outputs), and the resulting return value. This adds far more context than the bare schema (a string/null parameter with no description).

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description opens with a clear, specific verb: 'Get a list of programming languages supported by the analyzer.' It names the resource (supported languages) and uniquely distinguishes this tool from siblings that focus on AST traversal, queries, and analysis.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Usage guidance is only implied. The tool's purpose is obvious from the description, but it never explicitly states when to use this tool versus alternatives or mentions any context or prerequisites. The output_file parameter description gives a minor usage hint for large outputs, but no overall usage guidelines.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/pwno-io/treesitter-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server