Skip to main content
Glama

load_skill_file

Read a file from a materialized skill, supporting text ranges via offset and max_bytes, and returning metadata for binary files.

Instructions

Read a file from a materialized skill. Text supports offset/max_bytes ranges; binary files return metadata.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "skill_name": "<skill_name>",
      "file_path": "<file_path>"
    },
    "name": "load_skill_file"
  }
}

Input Schema

NameRequiredDescriptionDefault
offsetNoZero-based UTF-8 byte offset for large text files (default: 0)
file_pathYesRelative path within the skill directory, e.g. 'README.md' or 'scripts/run.py'
max_bytesNoMaximum bytes to return in this call (1 KiB–2 MiB, default: 500 KiB)
skill_nameYesSkill name, e.g. 'MediaCrawler'

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changedv1.0.7
    • removedInput schema / additionalProperties
      Removed value: -false
    • addedInput schema / properties / max_bytes
      Added value: +{
      +  "default": 512000,
      +  "description": "Maximum bytes to return in this call (1 KiB–2 MiB, default: 500 KiB)",
      +  "maximum": 2097152,
      +  "minimum": 1024,
      +  "type": "integer"
      +}
    • addedInput schema / properties / offset
      Added value: +{
      +  "default": 0,
      +  "description": "Zero-based UTF-8 byte offset for large text files (default: 0)",
      +  "maximum": 9007199254740991,
      +  "minimum": 0,
      +  "type": "integer"
      +}
  2. First observedv1.0.6

TDQS

A3.7/5.0
Behavior3/5

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

Adds genuine behavior beyond annotations: text files honor offset/max_bytes ranges while binary files return metadata only. That is useful disclosure. However, annotations declare readOnlyHint=false for an operation described purely as a read, and the description does not clarify whether any state is touched, nor does it mention error behavior for unknown skill names or paths.

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 tight sentences with zero waste. Purpose comes first, then the text/binary behavioral split, which is exactly the ordering an agent needs.

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 simple file-read tool with a fully documented four-parameter schema and no output schema, this covers what the agent must know: what it reads, how ranges apply, and what binary returns. Only failure modes and the skill-materialization precondition are unstated.

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

Parameters4/5

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

Schema coverage is 100%, so the baseline is 3, but the description adds real meaning by scoping offset/max_bytes to text files and stating that binary reads yield metadata instead — telling the agent these range parameters are irrelevant for binary content.

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?

States a specific verb and resource: 'Read a file from a materialized skill.' An agent can tell this apart from list_skill_files and read_skill by the 'file' vs listing/skill-level object, though the description never names those siblings to make the distinction explicit.

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?

Usage is only implied by the phrase 'from a materialized skill,' which hints at a precondition (the skill must be materialized) but gives no explicit routing guidance such as when to use read_skill versus load_skill_file, or what to do when a path is unknown (list_skill_files).

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.