Skip to main content
Glama
flyfei-cmd

CodeQL LSP MCP Server

by flyfei-cmd

codeql_definition

Find where a symbol is defined in CodeQL files by providing file URI, line, and character position.

Instructions

Navigates to the definition of a symbol.

Args: file_uri: URI of the CodeQL file line: 0-based line number character: 0-based character position

Returns: Dictionary with definition locations and metadata

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
lineYes
file_uriYes
characterYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior2/5

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

No annotations are provided, and the description offers minimal behavioral disclosure beyond stating it navigates and returns a dictionary. It does not mention whether the operation is read-only, potential side effects, or error behavior. For a tool with no annotation coverage, this is insufficient.

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 concise and efficiently structured with an action statement followed by Args and Returns sections. No unnecessary words, and the information is front-loaded.

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

Completeness4/5

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

For a simple navigation tool with three parameters and an output schema, the description covers the essential details of purpose, arguments, and return type. However, it lacks usage context and differentiation from sibling tools, leaving some contextual gaps.

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?

The description compensates for the 0% schema description coverage by explicitly defining each parameter: file_uri as the CodeQL file URI, line as 0-based line number, and character as 0-based character position. This fully explains the parameter meaning beyond the bare schema.

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 clearly states it navigates to the definition of a symbol, using a specific verb and resource. The tool name 'codeql_definition' aligns with the description, and the focus on 'definition' distinguishes it from siblings like codeql_references.

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

Usage Guidelines2/5

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

The description provides no guidance on when to use this tool versus alternatives like codeql_references or codeql_hover. It only states the action without context, exclusions, or alternative recommendations.

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/flyfei-cmd/codeql-lsp-mcp-python'

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