Skip to main content
Glama

Read a file of a skill

get_skill_file
Read-onlyIdempotent

One file of a skill, by a path from get_skill's files list (for example the reference.md its SKILL.md mentions). Same limits and third-party labelling as get_skill; the skill's licence and a 256 KB size limit apply. Binary files return only their size.

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": {
      "name": "<name>",
      "file": "<file>"
    },
    "name": "get_skill_file"
  }
}

Input Schema

NameRequiredDescriptionDefault
fileYesA path from the skill's files list, exactly as listed
nameYesThe skill: its ref or id from find_skills or get_skill
offsetNoCharacter to start from, to read the rest of a long file
maxCharsNoHow many characters to return (default 20000)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive and open-world, so safety is covered; the description adds real behavior on top: a 256 KB size limit, licence constraints, third-party labelling, and the fact that binary files return only their size. The phrase "same limits and third-party labelling as get_skill" depends on the agent knowing the sibling's terms, which is the only weak spot.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Three tight sentences with no filler, front-loading the resource and path provenance before the limits. The inherited-limits clause is compressed to the point of being slightly opaque, but nothing is wasted.

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 four-parameter read tool with annotations but no output schema, the description covers path provenance, size and licence constraints, and binary handling. It leaves the shape of a text response and how truncation interacts with offset/maxChars unstated, which is the main remaining gap.

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 100%, so both required parameters and the offset/maxChars paging controls are already fully documented. The description adds only the constraint that `file` must be an exact path from the skill's files list, which is useful but marginal, so the baseline 3 applies.

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?

"One file of a skill, by a path from get_skill's files list" identifies the resource and its scope precisely, and the reference to get_skill's files list distinguishes it from the sibling that enumerates skills. The verb is implied rather than stated (title supplies "Read"), so it falls just short of the top band.

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?

The description tells the agent where the `file` value must come from (get_skill's files list, e.g. the reference.md its SKILL.md mentions), which implicitly sequences get_skill before this call. It does not state any explicit when-not condition or contrast with other siblings, so it is clear context without full routing guidance.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources