Skip to main content
Glama

Retrieve a skill supporting resource

get_resource
Read-onlyIdempotent

Use after get_item to read one file from its file list (a script, template or reference), at that exact skill revision. Text returns bounded ordered chunks; follow next_offset until null and verify full character coverage. Binary files return a download descriptor for the host to retrieve and verify. Paths are archive-relative, never arbitrary URLs or filesystem paths.

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": {
      "slug": "<slug>",
      "path": "<path>",
      "revision_sha256": "<revision_sha256>"
    },
    "name": "get_resource"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathYes
slugYes
limitNo
offsetNoOffset in Unicode code points, as returned by next_offset.
revision_sha256YesExact lowercase catalogue SHA-256 revision returned by discovery or retrieval.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior5/5

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

Goes well beyond the readOnly/idempotent/closed-world annotations by explaining the two return regimes: text comes back as bounded ordered chunks that must be looped via next_offset until null with full character-coverage verification, and binary comes back as a download descriptor for the host to retrieve and verify. That is the kind of operational detail an agent cannot get from annotations or schema.

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?

Three tight sentences, front-loaded with the prerequisite (after get_item) and then the chunking contract. No restatement of the title and no filler; each clause carries distinct information.

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?

With no output schema, the description correctly takes on return-value explanation (chunked text, binary descriptor, next_offset loop), which is the main burden for this tool. It stops short of failure behavior — path-not-found, revision mismatch, or whether a partial chunk set is safe to abandon — which would matter for an agent recovering from an error.

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 only 40%, so the description needs to carry weight, and it does for two parameters: `path` is defined as archive-relative rather than a URL or filesystem path, and `revision_sha256` is pinned by 'at that exact skill revision.' It says nothing specific about `limit`, `slug`, or how `offset` relates to the returned `next_offset` beyond the loop instruction, so the compensation is partial.

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?

States a specific verb and resource — read one file (script, template, reference) from the file list returned by get_item, pinned to an exact revision. That is enough to separate it from get_item, which is the listing step, and from search/fetch siblings.

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 sequences the tool: 'Use after get_item to read one file from its file list,' and constrains inputs ('archive-relative, never arbitrary URLs or filesystem paths'). It does not state what to do when a path is absent or the revision has moved on, so exclusions are implicit rather than spelled out.

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