Skip to main content
Glama
ChromiaProject

Chromia LSP MCP

Official

get_info_on_location

Retrieve type information, documentation, and context for symbols at a specific file location. Understand variable types, function signatures, and module docs directly in your code.

Instructions

Get information on a specific location in a file via LSP hover. Use this tool to retrieve detailed type information, documentation, and other contextual details about symbols in your code. Particularly useful for understanding variable types, function signatures, and module documentation at a specific location in the code. Use this whenever you need to get a better idea on what a particular function is doing in that context. Requires the file to be opened first.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
lineYesLine number
columnYesColumn position
file_pathYesPath to the file
language_idYesThe programming language the file is written in
Behavior4/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 discloses the prerequisite 'Requires the file to be opened first' and implies a read-only operation via 'get information' and 'LSP hover.' It does not explicitly state there are no side effects or describe error behavior, but the key requirement is covered, making it reasonably transparent.

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

Conciseness3/5

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

The description is somewhat verbose and redundant. Sentences 2 and 3 both mention retrieving type information and documentation, and sentence 4 repeats 'use this' guidance. It could be condensed to two or three clear sentences without losing meaning, so it does not earn full points for conciseness.

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 read-only hover tool with four parameters, the description covers purpose, usage scenarios, and a key prerequisite. There is no output schema, so the description gives a general idea of the return content ('detailed type information, documentation...'). While more detail on return format or error handling would improve completeness, it is sufficient for an agent to select and invoke the tool correctly.

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

Parameters3/5

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

The input schema has 100% coverage for all four parameters, so the baseline is 3. The description does not add any parameter-specific details beyond the schema. It refers to 'a specific location' (line/column) and 'a file,' but these are already implied by the schema descriptions.

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 'Get information on a specific location in a file via LSP hover,' which is a specific verb+resource statement that clearly conveys the tool's function. It also distinguishes this from siblings like get_completions and get_code_actions by focusing on retrieving hover/type information rather than generating completions or actions.

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

Usage Guidelines4/5

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

The description provides clear usage context, stating it is 'particularly useful for understanding variable types, function signatures, and module documentation.' It also says 'Use this whenever you need to get a better idea on what a particular function is doing in that context.' However, it does not explicitly mention when not to use it or name alternative tools, so it misses the top score.

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/ChromiaProject/chromia-lsp-mcp'

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