Skip to main content
Glama

Get app source

get_app
Read-only

Read an app's UI source in windowed chunks to prevent truncated reads, with offset/length controls and hash/version for safe edits. Optionally retrieve the app 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
Behavior5/5

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

Beyond the readOnlyHint annotation, the description discloses important behavioral risks: hosts may silently drop the middle of oversized results, editing a mutilated source destroys it, and windows carry version/hash for safe edits. It also explains node and slot behavior, providing rich context that annotations do not capture.

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 yet compact, with every sentence contributing either to the core operation, the safety rationale, or the parameter semantics. It is front-loaded with the main purpose and then details mechanics without verbose padding.

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?

Given the tool's complexity, output schema, and annotations, the description is complete: it covers the read-only nature, window mechanics, truncation risk, version/hash coupling to edits, node jumping, and manifest slot behavior. No significant gap remains for an agent to select and invoke the tool.

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

Parameters4/5

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

Schema coverage is 80%, so the baseline is 3, but the description adds meaningful semantics: offset/length select the window, node jumps to a specific element, and slot:manifest returns the declaration object. This goes beyond the schema's per-parameter descriptions and clarifies how parameters interact.

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 opens with 'Read an app's ui source as a WINDOW,' which clearly states the verb, resource, and key mode of operation. It also distinguishes the manifest slot behavior from the default ui window, making the tool's scope and purpose unmistakable.

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?

The description explains when windowing is needed (to avoid silently truncated oversized results) and ties the returned version/hash to edit_app and save_app, giving strong contextual guidance. It does not explicitly name sibling tools like app_html or get_app_guide, so guidance on alternatives is implicit rather than explicit.

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

Install Server

Other Tools

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