find_imports
List the imports of a single file in source order to identify its dependencies.
Instructions
List what a single file imports, in source order.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | Yes |
List the imports of a single file in source order to identify its dependencies.
List what a single file imports, in source order.
| Name | Required | Description | Default |
|---|---|---|---|
| file | Yes |
Changes observed during successful MCP inspections.
v0.1.0Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
With no annotations, the description must disclose behavioral traits. It mentions source order, which is useful, but does not specify the output format, error handling, or any side effects. It is implied to be read-only but not explicitly stated.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is a single, front-loaded sentence with a clear verb and object. No unnecessary words or redundancy.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
For a tool with no annotations and no output schema, the description lacks essential context: it does not explain what constitutes an import, what the output looks like, or any prerequisites. An agent cannot fully predict the tool's behavior from this description alone.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
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 only refers to 'a single file', which adds no meaning beyond the schema. It does not clarify whether the path should be absolute or relative, what file types are supported, or how the file is resolved.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description clearly states the verb 'List' and the resource 'what a single file imports', plus the qualifier 'in source order'. It is specific and unambiguous, but it does not explicitly differentiate from the sibling tool find_importers, which is the reverse operation.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
No guidance is provided on when to use this tool versus alternatives like find_importers. The description only states what it does, without context about typical use cases or exclusions.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.