Skip to main content
Glama

Load File

load_file
Read-onlyIdempotent

Store a file in cache for use by code analysis tools, supporting refactoring, queries, and logic checks. Overwrites any previous cache.

Instructions

Cache a single file for analysis tools (refactor_code, ask_about_code, verify_logic). Overwrites previous cache. Path is relative to server working directory (e.g. src/index.ts) or absolute (e.g. /home/user/project/src/index.ts).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
filePathYesFile path relative to workspace root (e.g. src/index.ts) or absolute. Must be within workspace.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
okYesWhether the tool completed successfully.
resultNoSuccessful result payload.
errorNoError payload when ok is false.
Behavior4/5

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

Adds value beyond annotations by disclosing that it overwrites previous cache and explaining path format. Annotations already indicate idempotency and read-only behavior, and the description aligns with these while providing additional 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?

Two concise sentences pack all essential information: purpose, target tools, cache behavior, and path format. No redundant words.

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 caching tool with one parameter and an output schema, the description is fully adequate. It covers usage context, path constraints (relative/absolute, workspace), and cache override behavior. No gaps.

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 coverage is 100% and the parameter description in the schema is already detailed. The tool description merely repeats the path format examples, adding minimal new information beyond what the schema provides.

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

Purpose4/5

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

Clearly states it caches a file for analysis tools, distinguishing it as a preparatory step. Names specific sibling tools that consume the cache, which helps an agent understand its role in a workflow.

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?

Explicitly states the tool is for caching files before using refactor_code, ask_about_code, and verify_logic. This gives clear context for when to invoke it, though it does not explicitly list when not to use it or alternatives.

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/j0hanz/code-lens'

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