Skip to main content
Glama
@event4u/agent-config

@event4u/agent-config

Official

read_resource_body

Read-onlyIdempotent

Fetch the rendered body of a known resource URI in one call, bypassing the two-step list-and-read handshake to inline rule, guideline, or context content directly into tool results.

Instructions

Fetch the rendered body of a single resource URI (rule, guideline, or context document) in one call, without the two-step resources/list + resources/read handshake. Use when you already know the URI and want to inline its content into a tool-call result. Returns the resource uri, name, description, and full text body.

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": {
      "uri": "<uri>"
    },
    "name": "read_resource_body"
  }
}

Input Schema

NameRequiredDescriptionDefault
uriYesResource URI to fetch, e.g. `rule://commit-policy`, `guideline://php/patterns/events`, or `context://authority/scope-mechanics`.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv1.0.2
    • addedInput schema / properties / uri / description
      Added value: +"Resource URI to fetch, e.g. `rule://commit-policy`, `guideline://php/patterns/events`, or `context://authority/scope-mechanics`."
  2. First observedv1.0.0

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive, closed-world behavior, so the safety profile is covered. The description adds value beyond that by specifying the collapse of a two-call handshake into one call and by listing the returned fields (uri, name, description, body), which matters since there is no output schema. It does not say what happens when the URI is unknown or malformed.

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 short sentences with no filler: purpose first, usage condition second, return shape last. Every sentence carries distinct information an agent needs.

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

Completeness5/5

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

For a single-parameter read tool, the definition covers purpose, usage trigger, cost/efficiency rationale, and return fields, while the annotations carry the full safety profile and the schema covers the parameter. Nothing essential to correct invocation is missing.

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?

There is a single required `uri` parameter documented at 100% schema coverage, including concrete example URIs, so the schema already carries the semantics. The description adds no URI syntax or format guidance beyond what the schema property text provides, which is the expected baseline-3 outcome for high coverage.

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: "Fetch the rendered body of a single resource URI," and enumerates the resource kinds (rule, guideline, context document). It also contrasts itself with the two-step `resources/list` + `resources/read` handshake, so an agent can tell what this does and how it differs from the protocol path.

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?

Gives an explicit usage condition: "Use when you already know the URI and want to inline its content into a tool-call result." That clearly implies the inverse case (if you don't know the URI, discover it elsewhere), but no sibling tool such as list_rules is named as the alternative, so it stops short of full routing guidance.

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