Skip to main content
Glama

Add a screen to an app

add_screen
Read-onlyIdempotent

Needs a subscription. Adds one screen designed in the Architect to a React Native / Expo app. With the project's .opointo/files.json it returns the screen file, the route that mounts it and the one line to register it, and never rewrites existing files. Without it, a self-contained screen file for any Expo app.

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": {
      "appId": "<appId>"
    },
    "name": "add_screen"
  }
}

Input Schema

NameRequiredDescriptionDefault
tabNonest it in this tab's stack; omit to place it where the design does
appIdYesthe share code from "Send app to agent"
screenNothe new screen's name in that design
manifestNothe parsed .opointo/files.json
componentNameNoonly to add a second copy of a screen; omit for the export's name

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedInput schema / properties / componentName / description
      Previous value: -"e.g. \"InvoiceScreen\""New value: +"only to add a second copy of a screen; omit for the export's name"
    • changedInput schema / properties / tab / description
      Previous value: -"nest it in this tab's stack; omit for the root, which covers the tab bar"New value: +"nest it in this tab's stack; omit to place it where the design does"
  2. Changed7 schema fields changed
    • addedInput schema / properties / appId
      Added value: +{
      +  "description": "the share code from \"Send app to agent\"",
      +  "type": "string"
      +}
    • changedInput schema / properties / componentName / description
      Previous value: -"React component name, e.g. \"InvoiceDetail\". Defaults to GeneratedScreen."New value: +"e.g. \"InvoiceScreen\""
    • removedInput schema / properties / compositionId
      Removed value: -{
      -  "description": "share code for the new screen, from the App Builder",
      -  "type": "string"
      -}
    • changedInput schema / properties / manifest / description
      Previous value: -"the parsed .opointo/files.json from the project root"New value: +"the parsed .opointo/files.json"
    • addedInput schema / properties / screen
      Added value: +{
      +  "description": "the new screen's name in that design",
      +  "type": "string"
      +}
    • changedInput schema / properties / tab / description
      Previous value: -"nest it in this tab's stack so the tab bar stays visible. Omit to put it at the root, where it covers the tab bar (right for a modal)."New value: +"nest it in this tab's stack; omit for the root, which covers the tab bar"
    • changedInput schema / required
      Previous value: -[
      -  "compositionId",
      -  "manifest"
      -]New value: +[
      +  "appId"
      +]
  3. First observed

TDQS

A3.7/5.0
Behavior4/5

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

The annotations declare readOnlyHint=true, destructiveHint=false, and idempotentHint=true, and the description is consistent with that: it returns the screen file, route, and registration line rather than writing anything, and explicitly "never rewrites existing files." The subscription prerequisite is also surfaced here rather than in structured fields. It adds useful context beyond the annotations without contradicting them.

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?

It is short and places the subscription gate first, but the sentences are telegraphic fragments ("Without it, a self-contained screen file for any Expo app.") whose subject is implied, which costs some readability. Nothing is wasted, yet the elliptical phrasing makes the two modes less crisp than they could be.

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

Completeness4/5

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

For a 5-parameter tool with a nested manifest object and no output schema, the description explains what comes back (screen file, route, registration line) and the two operating modes. A little more on how tab placement interacts with design placement would close the remaining gap.

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 about the manifest parameter: supplying it yields the route and the one-line registration, while omitting it yields a self-contained file. The tab-vs-design-placement distinction is left to the schema, which is acceptable at full coverage.

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 uses a specific verb and resource ("Adds one screen ... to a React Native / Expo app") and clearly splits behavior into two modes: with the project's .opointo/files.json versus without it. It never names a sibling such as propose_screen, so an agent must infer the boundary between drafting and adding a screen.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It states a gating condition ("Needs a subscription") and explains which mode applies depending on whether a manifest is supplied, which is genuine when-to-use guidance. It gives no explicit when-not or alternative-tool guidance, so choosing between add_screen and propose_screen remains an inference.

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.