Skip to main content
Glama
desty2k
by desty2k

get_edgeworker_file

Read a file from an EdgeWorker bundle and return its source lines with line numbers, with options to specify a line range.

Instructions

Read a file from an EdgeWorker code bundle. Returns numbered source lines.

Example questions:

  • "Show me main.js from EdgeWorker 42 v1.0"

  • "Read lines 50-100 of the request handler"

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
edgeworker_idYesEdgeWorker ID (numeric)
versionYesVersion identifier (e.g., '1.0')
pathYesFile path within the bundle (e.g., 'main.js')
start_lineNoFirst line to read (1-based, inclusive)
end_lineNoLast line to read (1-based, inclusive). Omit to read to end.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior3/5

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

No annotations provided, so description carries full burden. It states 'Read' (idempotent read) and 'Returns numbered source lines', but lacks details on error handling, auth, or side effects. Adequate for a simple read operation.

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?

Very concise: one sentence stating purpose, one sentence on output format, and two example questions. Front-loaded with key information, no wasted words.

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?

Given output schema exists and tool is simple, description covers core behavior and example scenarios. Minor missing context about EdgeWorker concepts, but sufficient for typical use.

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%, so baseline is 3. Description provides example usage but does not add semantic meaning beyond what the schema descriptions already provide.

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?

Description clearly states 'Read a file from an EdgeWorker code bundle' with specific verb and resource. Examples illustrate usage, distinguishing from sibling tools like get_edgeworker_files (lists files) and search_edgeworker_code (searches across files).

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?

Examples imply when to use (reading a specific file), but no explicit guidance on when not to use or alternatives. The context of siblings is present but description does not refer to them.

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/desty2k/readonly-mcp-akamai'

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