Skip to main content
Glama

Get app source

get_app
Read-only

Retrieve an app's UI source using offset/length windows that avoid truncation, get version and hash for safe editing, or select a specific node/manifest.

Instructions

Read an app's ui source as a WINDOW — offset/length select it, next_offset continues, total is the full length. Windows exist because some hosts silently drop the MIDDLE of an oversized result: a big app read whole can arrive mutilated with no sign, and an edit saved from it destroys the source. Carries version — the expected_version for edit_app / save_app — and hash, the expect_hash for a range edit of exactly this window. node jumps the window to the element marked data-oma-node="". slot:"manifest" returns the declaration object instead (no window mechanics).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameYes
nodeNoread the element marked data-oma-node="<node>" — the window (and its hash) covers exactly that element (ui slot only)
slotNodefault ui; manifest returns {manifest: object|null} whole
lengthNomax characters for this window (default fits the result budget; ui slot only)
offsetNocharacter offset to read from (default 0; ui slot only)

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
eotNo
hashNo
nameYes
textNo
totalNo
offsetNo
versionYes
manifestNo
returnedNo
next_offsetNo

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. Changed2 schema fields changedv0.6.0
    • removedOutput schema / properties / next_offset / anyOf
      Removed value: -[
      -  {
      -    "type": "number"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedOutput schema / properties / next_offset / type
      Added value: +[
      +  "number",
      +  "null"
      +]
  2. First observedv0.5.7

TDQS

A4.6/5.0
Behavior5/5

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

Beyond the readOnlyHint annotation, the description discloses mutilation risk, the destructive consequence of editing from a mutilated read, next_offset/total continuation semantics, node-based jumps, and version/hash expectations. This is rich, non-obvious behavior that annotations alone would not convey.

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?

The description is dense but each sentence earns its place: window mechanics, safety rationale, version/hash, node behavior, and manifest behavior. There is no redundancy or filler.

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 complex windowed-read protocol, the description covers the window mechanism, continuation, safety rationale, edit-handshake values, node targeting, and the manifest alternative. Nothing essential for correct invocation appears to be missing.

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 coverage is high, but the description adds real meaning beyond the schema: offset/length define a selectable window, next_offset continues it, total is full length, node targets an element, slot:manifest bypasses window mechanics, and version/hash feed later edit operations. This goes far beyond the parameter descriptions.

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 description states a specific verb and resource ('Read an app's ui source') and adds clear windowing mechanics plus a manifest slot alternative. It is much more specific than the title, but it does not explicitly name or contrast sibling tools, so it stops just short of full differentiation.

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 strong contextual guidance: windowed reads exist because oversized results may be silently mutilated, and the returned version/hash are meant for edit_app/save_app. It does not explicitly list when to use an alternative tool, but it conveys the right decision context.

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

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/2nd1st/open-mcp-apps'

If you have feedback or need assistance with the MCP directory API, please join our Discord server