Skip to main content
Glama

read_item

Read-onlyIdempotent

Reads text content from MOGA library items—rules, skills, code files, component sources, or composition layers—and returns the content, format, and path for agent use.

Instructions

A library item that is text, as the Studio shows it in a document tab (an agent reads the files with its own file tools instead): a rule (a taste rule as a page: what it measures, its bound, why, its cases and where it fires now; a code rule as its source), a skill (its SKILL.md), a file in a linked codebase (code by id "/", up to 256 KB), a project component's source (component by its tag), or one layer of a composition as written (layer by id "##": a code layer's page as HTML, a project component's layer as that component's source, any other layer as its JSON). Returns { kind, name, title, format: markdown | code, language?, text, path? }.

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": {
      "kind": "<kind>",
      "name": "<name>"
    },
    "name": "read_item"
  }
}

Input Schema

NameRequiredDescriptionDefault
kindYes
nameYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.1.2
    • changedInput schema / properties / kind / enum
      Previous value: -[
      -  "rule",
      -  "skill",
      -  "code"
      -]New value: +[
      +  "rule",
      +  "skill",
      +  "code",
      +  "component",
      +  "layer"
      +]
  2. First observedv0.1.0

TDQS

A4.4/5.0
Behavior4/5

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

Beyond the readOnly/idempotent annotations, the description discloses meaningful behavior: the 256 KB cap on linked-codebase files, the markdown vs. code format distinction, the language field, and exactly how layers are rendered (HTML for code layers, source for component layers, JSON otherwise). It does not cover error behavior, but that is a minor gap for a read-only 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?

Every clause carries information and the core is front-loaded, but the entire definition is one long sentence with deeply nested parentheses, making it hard to scan. A short bulleted mapping of kinds to return formats would communicate the same content more efficiently.

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 two-parameter, read-only tool with no output schema, the description is complete: it explains input formats, per-kind return content, and the return shape { kind, name, title, format, language?, text, path? }. An agent has enough to call it correctly and interpret the result.

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

Parameters5/5

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

Schema description coverage is 0%, so the description carries the full burden and does it well: it explains every value of the kind enum and gives the required name formats for code ("<codebase>/<path>") and layer ("<composition>#<scene>#<layer>"). This adds substantial meaning beyond the bare schema.

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?

The description precisely defines the resource: library-item text as shown in a Studio document tab, enumerating every supported kind (rule, skill, code, component, layer). It also distinguishes the tool from the agent's own file tools, so an agent can tell what this tool is and is not for.

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?

It gives a clear usage context (read the text as Studio presents it) and an explicit exclusion: files are read with the agent's own file tools instead. It does not name sibling alternatives such as get_composition, get_asset, or export_item, so the routing guidance is strong but not exhaustive.

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

Deploy Server

Other Tools