Skip to main content
Glama

create_region_tool

Create a region identifier for a specific code location by specifying file path and level: file, function, class, or lines.

Instructions

Create a region identifier for a specific code location. Use level='file' for whole file, 'function' for a function, 'class' for a class, or 'lines' for a line range.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
levelNofile
lineEndNo
filePathYes
funcNameNo
classNameNo
lineStartNo
Behavior2/5

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

With no annotations provided, the description carries the full burden of behavioral disclosure, but it only mentions what the tool does without detailing side effects, prerequisites, or return values. There is no indication of whether creation is idempotent, what happens on invalid input, or whether it modifies persistent state. This is a significant gap for a creation tool.

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, with two sentences that front-load the core purpose and then provide level semantics. Every sentence contributes meaningful information, and there is no redundant filler.

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

Completeness2/5

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

The tool has 6 parameters, 1 required, no output schema, and no annotations, yet the description only covers the 'level' parameter semantics. It leaves out crucial context such as how to combine parameters for each level, any error conditions, and what the function returns. For a tool with this complexity, the description is incomplete.

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?

Schema description coverage is 0%, so the description must compensate. It explains the meaning of each 'level' value, which partially clarifies the relevance of funcName, className, and lineStart/lineEnd, but it does not explicitly map levels to parameter names or state whether lineStart/lineEnd are both required for 'lines'. The required filePath parameter is not mentioned at all, leaving some parameters underspecified.

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 the tool's function: creating a region identifier for a code location. It specifies valid level values, which distinguishes it from sibling tools like parse_region_tool or get_region_metrics_tool. The verb 'create' plus the resource 'region identifier' is specific and unambiguous.

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?

The description gives implicit guidance on when to use this tool (whenever a region identifier is needed), but it does not explicitly distinguish it from alternatives or state when not to use it. The level-specific instructions are more about parameter selection than tool selection, so usage context is only implied rather than fully elaborated.

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/egoughnour/curate-ipsum'

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