Skip to main content
Glama

Add to the app

myapp_add
Destructive

Add a page, a block of the home, an item of the menu, an action of a header, a link of a home block, a category of a page, a step of the walkthrough or a collection of the shop, or copy a page or a home block. A new page starts empty. One call makes one step; undoing it removes what was added. The app can also change outside this conversation: before acting on what was read earlier, read it again with myapp_get_app; after a conflict or an unexpected result, read it again before trying again. With draft, some changes come once the app is kept in the user's account (images and other files, content, sources, extensions, user groups, changes that cannot be undone): the refusal says which, and myapp_create with the draft keeps the 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": {
      "add": "<add>"
    },
    "name": "myapp_add"
  }
}

Input Schema

NameRequiredDescriptionDefault
addYes
appNo
draftNoSecret of a draft, returned once by myapp_create without an account: the app as it takes shape, before it is kept in the user's account. Pass it back as draft, instead of app, to read, preview and change it, until myapp_create with this draft keeps the app in the account. It is not an id: do not show it to the user.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / add / properties / source / description
      Previous value: -"The page a home block shows."New value: +"A name or an id read with myapp_get_app: the page a content block shows; the page a menu item, a header action or a link of a home block opens (a search button opens a page of type search, added first when the app has none); for collection, the shop collection to add."
  2. Added

TDQS

A4.1/5.0
Behavior5/5

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

With destructiveHint=true and idempotentHint=false already declared, the description still adds real substance: 'one call makes one step', undo semantics ('undoing it removes what was added'), that a new page starts empty, that the app mutates outside the conversation so reads can be stale, and that under draft some changes only land once myapp_create keeps the app, with refusals naming which. This is behavior an agent cannot infer from the annotations.

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 opens with a sprawling eight-item enumeration in noun-phrase form ('an action of a header, a link of a home block...'), which is front-loaded but verbose, and the high-value guidance on re-reading and draft behavior is buried mid-paragraph. Nothing is pure filler, but the ordering could be tighter.

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 destructive, nested, non-idempotent mutation tool with no output schema, the description covers undo, staleness/conflict recovery, and the draft lifecycle well. Gaps remain around what a successful call returns (e.g. an id for the new object) and the ordering semantics of 'where.after'.

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?

Top-level schema coverage is 33%, but the description compensates: it explains what draft is (a secret, not an id, never shown to the user), that it substitutes for app until myapp_create keeps it, and that page_copy/block_copy consume copy_of. The nested 'where' (after, in_menu), 'in' and 'source' ordering semantics are left to the schema text rather than elaborated here.

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 names a specific verb and enumerates the exact resource kinds that can be added (page, home block, menu item, header action, block link, category, walkthrough step, collection) plus the two copy variants, so an agent can match a request to this tool without opening the schema. It does not contrast itself with myapp_change or myapp_remove by name, leaving the add-vs-modify boundary implicit.

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 concrete operational guidance: re-read with myapp_get_app before acting on previously read state, and re-read after a conflict or unexpected result before retrying. It also states when to pass draft instead of app. What it lacks is any explicit statement of when not to use this tool (e.g. to alter something that already exists, use myapp_change).

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.