Skip to main content
Glama

Read Resource

read_resource

Resolve a guide:// or skill:// URI to retrieve category, collection, or skill content, or to execute server commands, returning the requested resource output.

Instructions

Resolve a Guide or standard skill URI and return its content or command output.

Accepts content URIs (guide://expression/pattern) to retrieve category or collection content, command URIs (guide://_command) to execute server commands, Guide skill URIs (guide://$ or guide://$skill/path), and standard skill URIs (skill://skill-name/SKILL.md). A unique session_id on either URI query is used when the sibling session_id argument is omitted.

Arguments

  • session_id: string | null

    • Opaque Guide interaction identifier returned by set_project. Pass it through unchanged on later tool, prompt, and resource calls. Do not construct, alter, or treat it as a FastMCP transport session id.

  • uri (required): string

    • A guide:// or skill:// URI to resolve. Content URIs (guide://expression/pattern) return category or collection content. Command URIs (guide://_command/args?kwargs) execute server commands. Guide skill URIs (guide://$ or guide://$skill/path) return the skills catalogue or a skill instruction. Standard skill URIs (skill://skill-name/SKILL.md) use the same skill resolver. A unique ?session_id= query value is copied onto the session_id argument when that argument is omitted.

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": {
      "args": "<args>"
    },
    "name": "read_resource"
  }
}

Input Schema

NameRequiredDescriptionDefault
argsYesArguments for read_resource tool.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv2.1.0
    • changedInput schema / properties / args / properties / uri / description
      Previous value: -"A guide:// URI to resolve. Content URIs (guide://expression/pattern) return category or collection content. Command URIs (guide://_command/args?kwargs) execute server commands. Skill URIs (guide://$ or guide://$skill/path) return the skills catalogue or a skill instruction. A unique ?session_id= query value is copied onto the session_id argument when that argument is omitted."New value: +"A guide:// or skill:// URI to resolve. Content URIs (guide://expression/pattern) return category or collection content. Command URIs (guide://_command/args?kwargs) execute server commands. Guide skill URIs (guide://$ or guide://$skill/path) return the skills catalogue or a skill instruction. Standard skill URIs (skill://skill-name/SKILL.md) use the same skill resolver. A unique ?session_id= query value is copied onto the session_id argument when that argument is omitted."
  2. Changed4 schema fields changedv2.0.0
    • removedInput schema / properties / args / additionalProperties
      Removed value: -false
    • addedInput schema / properties / args / properties / session_id
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "description": "Opaque Guide interaction identifier returned by set_project. Pass it through unchanged on later tool, prompt, and resource calls. Do not construct, alter, or treat it as a FastMCP transport session id."
      +}
    • changedInput schema / properties / args / properties / uri / description
      Previous value: -"A guide:// URI to resolve. Content URIs (guide://expression/pattern) return category or collection content. Command URIs (guide://_command/args?kwargs) execute server commands."New value: +"A guide:// URI to resolve. Content URIs (guide://expression/pattern) return category or collection content. Command URIs (guide://_command/args?kwargs) execute server commands. Skill URIs (guide://$ or guide://$skill/path) return the skills catalogue or a skill instruction. A unique ?session_id= query value is copied onto the session_id argument when that argument is omitted."
    • changedOutput schema / (root)
      Previous value: -{
      -  "properties": {
      -    "result": {
      -      "type": "string"
      -    }
      -  },
      -  "required": [
      -    "result"
      -  ],
      -  "type": "object",
      -  "x-fastmcp-wrap-result": true
      -}New value: +null
  3. First observedv1.3.2

TDQS

B3.3/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full behavioral burden. It does disclose the important trait that guide://_command URIs execute server commands, and it warns against constructing or altering session_id. It says nothing about permission requirements, failure behavior for unresolvable URIs, or the shape of returned content, leaving meaningful gaps for an execution-capable tool.

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

Conciseness3/5

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

The opening sentence and the URI-family list are well front-loaded and earn their place. However, the Arguments block duplicates the input schema's parameter descriptions word for word, which is pure redundancy. The result is longer than necessary without adding new information.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a resolver with a single required nested argument, the description covers the URI forms and session propagation adequately. With no output schema and no annotations, it should still say what a resolved resource looks like and what happens on an invalid URI, which it does not.

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 uri and session_id are already fully documented in the schema. The description's Arguments section reproduces those schema texts almost verbatim, adding no syntax or format detail beyond them. Baseline 3 applies since the schema already does the work.

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?

The first sentence states a specific verb and resource: resolve a guide:// or skill:// URI and return content or command output. It then enumerates the four URI families the tool accepts. It stops short of distinguishing this tool from siblings like get_content or category_content, which handle adjacent retrieval tasks.

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 implied through the URI taxonomy (content vs. command vs. skill URIs), which lets an agent infer which call shape maps to which outcome. There is no explicit statement of when to prefer this over get_content, category_content, or list_resources, nor any 'do not use for X' guidance.

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