Skip to main content
Glama

Get app context

get_app_context
Read-only

Returns the complete currently published source of an existing app, by the app_id in the person's message: every authored file, the live declared schema, published compact context, and this editor's checkpoint. An app too large for one reply comes in parts, which note names. Ground-truth files and schema win if compact context disagrees. Reserved apps return version 0 with no files. Failed apps return the last live version when one exists and a plain problem. Open reviewer comments come back word for word, with ids. Stored records are intentionally not returned. For source-backed data, it returns the recipe digest, the collection and field projection, and whether the owner keeps a copy, and never returns rows or recipe material. A change is a publish of only the changed files against the returned version, as base_version, with the complete schema and a new work_context. version reads a past version instead of the live one: publishing its files against the version now serving puts a bad publish back.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "get_app_context"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathsNoselected paths from the returned manifest, or none for every file one reply holds
app_idNothe app to continue working on, from the person's message or list_apps
to_lineNothe last line returned of each file
versionNoa past version to read instead of the live one; omit for what is published now
from_lineNothe first line returned of each file, from 1. A line too long for one reply counts as several

Output Schema

NameRequiredDescriptionDefault
nameYes
noteNoplain sentences about this result, such as a file read in parts or brand and source guidance. When set, the same text as the text blocks before the result JSON, joined by blank lines
filesYesthe authored bundle of the version read, each file whole unless complete is false, and note names any part or file left out. For the live version, version is the base_version of the next change. A past version's files, published against the version now serving, not this number, put that version back
assetsNobinary files this version serves, by path, size, hash and type; never their bytes. A publish naming one in assets with a new hash changes it
intentNo
schemaNothe complete live declared data shape; publish takes it whole, unchanged or added to
statusYes
problemNo
versionYes
manifestNo
checkpointNo
data_publicationNo
published_contextNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedInput schema / properties / app_id / description
      Previous value: -"the app id to continue working on"New value: +"the app to continue working on, from the person's message or list_apps"
    • removedInput schema / properties / development_token
      Removed value: -{
      -  "type": "string"
      -}
  2. Changed2 schema fields changed
    • changedOutput schema / properties / schema / properties / collections / items / properties / access / description
      Previous value: -"omit or \"shared\" so everyone sees the same rows; \"private\" so each signed-in person keeps their own list"New value: +"omit or \"shared\" so everyone sees the same rows; \"private\" so each signed-in person keeps their own list; \"assigned\" so a user sees rows assigned to them and owners and editors all"
    • addedOutput schema / properties / schema / properties / collections / items / properties / assigned_to
      Added value: +{
      +  "description": "assigned only: the text field holding a person's id",
      +  "type": "string"
      +}
  3. Changed1 schema field changed
    • changedOutput schema / properties / note / description
      Previous value: -"plain sentences about this result, such as a file read in parts. When set, the same text as the first text block"New value: +"plain sentences about this result, such as a file read in parts or brand and source guidance. When set, the same text as the text blocks before the result JSON, joined by blank lines"
  4. Changed6 schema fields changed
    • addedInput schema / properties / from_line
      Added value: +{
      +  "description": "the first line returned of each file, from 1. A line too long for one reply counts as several",
      +  "type": "integer"
      +}
    • changedInput schema / properties / paths / description
      Previous value: -"for a large app, selected paths from the returned manifest; omit for the complete bundle"New value: +"selected paths from the returned manifest, or none for every file one reply holds"
    • addedInput schema / properties / to_line
      Added value: +{
      +  "description": "the last line returned of each file",
      +  "type": "integer"
      +}
    • changedOutput schema / properties / files / description
      Previous value: -"the authored bundle of the version read. For the live version, version is the base_version of the next change. A past version's files, published against the version now serving, not this number, put that version back"New value: +"the authored bundle of the version read, each file whole unless complete is false, and note names any part or file left out. For the live version, version is the base_version of the next change. A past version's files, published against the version now serving, not this number, put that version back"
    • addedOutput schema / properties / files / items / properties / complete
      Added value: +{
      +  "description": "false when content holds part of the file, which note names",
      +  "type": [
      +    "null",
      +    "boolean"
      +  ]
      +}
    • changedOutput schema / properties / note / description
      Previous value: -"plain sentences about this result for the person; the same text as the first text block"New value: +"plain sentences about this result, such as a file read in parts. When set, the same text as the first text block"
  5. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Despite readOnlyHint=true and destructiveHint=false already covering the safety profile, the description adds substantial behavioral context the annotations cannot express: paged responses with naming, the reserved-app version 0 case, failed-app fallback to the last live version, verbatim reviewer comments with ids, and the deliberate omission of stored records. It also warns about the consequence of republishing a historical version.

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

Conciseness4/5

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

The most important fact, what is returned, is front-loaded, and the dense sentences each carry a distinct behavioral or edge-case fact. The closing publish/base_version material is slightly tangential to a read tool, but it earns its place by explaining how the returned version is meant to be consumed.

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?

With an output schema, full annotation coverage, and 100% schema description coverage, the remaining burden is behavioral nuance, and the description supplies it: paging, reserved and failed app states, comment handling, and data-redaction policy. An agent has everything needed to call this correctly and interpret the response.

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 100%, so the baseline is 3, but the description adds real meaning: app_id is sourced 'from the person's message', paths are selections 'from the returned manifest', and version is explained not just as a selector but as a live-vs-historical switch whose files can roll back a serving version if republished. That goes beyond the schema's neutral phrasing.

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 a specific verb and resource plus the full scope of what is returned: 'the complete currently published source of an existing app, by the app_id... every authored file, the live declared schema, published compact context, and this editor's checkpoint.' It also draws boundaries against neighboring concepts by stating that stored records and recipe material are intentionally excluded.

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 conditional guidance: use version to read a past version, expect multi-part replies for large apps, expect version 0 for reserved apps and the last live version for failed apps. It ties the result to the subsequent publish workflow by explaining base_version and the danger of republishing an old version, but it never explicitly names a sibling tool as the alternative for a given scenario.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.