Skip to main content
Glama

Publish

publish
Destructive

Create an app from its files, or change one.

A change takes app_id and base_version (the version get_app_context or the last publish returned) and only the files and assets that changed. To change part of a file, send edits instead of the file: "edits": [{"path": "index.html", "find": "old text", "replace": "new text"}]. find must occur once, unless count says how many times, and a miss refuses the publish and says what it found. Without base_version a publish replaces every file. A stale base is refused, so someone else's change is reloaded rather than overwritten. An app is named by an app_id from a reply or list_apps, never found by name.

A create omits app_id and takes intent. Files are a single client-side page: index.html plus css/js, plain text, no build step, no server. Files with SKILL.md at the root and no index.html publish a skill, in one call with all its files. A picture, font or sound is an asset: listed in assets with its sha256 and byte count, and the reply says where to PUT its bytes before publishing again. Changes start from the files get_app_context returned, not the HTML at the app URL. Files carry literal angle brackets.

Every call takes work_context (goal, current_state, decisions, open_work, verification, known_issues; no credentials, transcripts, or stored records) and summary (one line of 200 characters or fewer, in the person's words).

An app that stores data uses window.cloche and declares collections in schema. get_deploy_instructions returns the runtime API, the purpose-built AI surface and the authoring rules, and the icon rule for a create's icon.

A local folder with server code (Flask, Express, SQLite, login routes, database URLs) is rewritten into this shape before publishing. Its server is neither uploaded nor run, its credentials are dropped, and no auth is invented: window.cloche and schema replace them. A rewrite of any existing tool, including a browser localStorage app, keeps every persisted entity and field from the source store, including optional fields and nested groups such as folders, as schema collections and fields, and adds no feature the source lacked.

Data from another service is never rows in files or work_context. request_source_data asks the person to pick it, and get_app_status returns the collections and fields they chose. Those collections are shared in schema, and the app reads them through window.cloche.data like stored ones. A company database is asked for the same way: source is its address from get_deploy_instructions and database names the table, columns, filters and changes, never SQL.

The result's bundle_bytes is what the app's files now total, for checking the change. An app far smaller than before was sent truncated, not edited. get_app_context with version returns a past version. Its files published against the live base_version put a damaged live version back.

The result says what looks like personal data in the version and where, when the organization checks for it.

Files are live only when this call returns ready.

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": {
      "work_context": "<work_context>"
    },
    "name": "publish"
  }
}

Input Schema

NameRequiredDescriptionDefault
iconNowhen creating: a Tabler icon name saying what the app is, e.g. list-check. An unknown name is read by its words, then the app name
nameNodisplay name, when creating
slugNoaddress words, when creating; the organization handle is added
editsNowith base_version, change part of a file without sending it whole
filesNothe app bundle's files, inline
app_idNoomit to create; otherwise the app_id from a reply or list_apps
assetsNobinary files (images, fonts, audio, video) by path, sha256 and byte count; the reply says where to PUT the bytes before a second publish
intentNowhen creating: what the app is for, in the author's own words
schemaNocollections this app stores; needs files on create; omit for an app that stores nothing. A replace takes the whole schema again
answersNoreplies to open comments by comment_id, shown under each with this version
summaryNoone line of 200 characters or fewer, naming what this is or what changed, in the words the person would use for it
base_commitNothe exact commit in get_app_context note for a connected app. Files then carry changes against that commit
base_versionNothe version get_app_context or your last publish returned; files may then carry only what changed
organizationNowhen creating: destination organization id. Required when you belong to multiple organizations
work_contextYescompact continuation state for the next session: no credentials, transcripts, or stored app records
removed_pathsNopaths to delete from the version named by base_version
contract_versionNo

Output Schema

NameRequiredDescriptionDefault
urlYesthe app's own URL, a Template's page in Cloche, or a skill's page until it is public. The app stays private unless you shared it
kindNo"app" or "skill": what this publish put live
nameNo
app_idNo
reasonNoset when status is "failed" with what stopped the publish, "awaiting_upload" with the next step to finish the upload or "waiting" with who decides
statusNo"ready" when the files are live, "failed" when nothing went live, "reserved" when this call only took the address and there are no files yet, "awaiting_upload" when this call went no further than naming the bytes it needs -- nothing is live, "waiting" when the files are stored and an approver must decide before they go live
answersNorecorded ids, ignored ids (no open comment of this app has the id, or the answer was blank or repeated) and unsaved ids (a server problem kept the answer from being saved, so send it again)
uploadsNoset when status is awaiting_upload: a signed url per asset that takes its raw bytes by PUT. The same publish arguments sent again then complete it
versionNothe version this publish put live, and the base_version of the next change to this app
data_urlNowhere the owner keeps a copy
share_urlNothe link people open, when share was "link"; the app's own URL stays private
access_noteNoset on every publish while the app is private with nobody invited and no link, so only its owner can open it, and on every skill publish with who can install it; this result's own message already says it
asset_bytesNowhat this app's assets total now, against asset_cap_bytes
bundle_bytesNowhat this app's files total now, against bundle_cap_bytes
personal_dataNowhat looks like personal data in this version, as a count, a kind and a place such as "3 email addresses in index.html", then each file that was not checked. It holds no value
asset_cap_bytesNo
continue_promptNousually absent today; when present, a short message the person can paste into any agent to keep working
bundle_cap_bytesNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / schema / properties / collections / items / properties / fields / items / properties / type / enum
      Previous value: -[
      -  "text",
      -  "number",
      -  "boolean",
      -  "timestamp"
      -]New value: +[
      +  "text",
      +  "number",
      +  "boolean",
      +  "timestamp",
      +  "files"
      +]
  2. Changed1 schema field changed
    • removedOutput schema / properties / deploy_id
      Removed value: -{
      -  "type": "string"
      -}
  3. Changed10 schema fields changed
    • removedInput schema / allOf
      Removed value: -[
      -  {
      -    "if": {
      -      "required": [
      -        "data_publication"
      -      ],
      -      "type": "object"
      -    },
      -    "then": {
      -      "anyOf": [
      -        {
      -          "properties": {
      -            "files": {
      -              "minItems": 1,
      -              "type": "array"
      -            }
      -          },
      -          "required": [
      -            "files"
      -          ],
      -          "type": "object"
      -        },
      -        {
      -          "properties": {
      -            "edits": {
      -              "minItems": 1,
      -              "type": "array"
      -            }
      -          },
      -          "required": [
      -            "edits"
      -          ],
      -          "type": "object"
      -        }
      -      ]
      -    }
      -  }
      -]
    • changedInput schema / properties / base_commit / description
      Previous value: -"the exact GitHub commit in get_app_context note for a connected app. Files then carry changes against that commit"New value: +"the exact commit in get_app_context note for a connected app. Files then carry changes against that commit"
    • removedInput schema / properties / data_publication
      Removed value: -{
      -  "additionalProperties": false,
      -  "description": "with files: the collections and fields this app reads from a source, and the recipe of read-only tool calls that produces them; never rows",
      -  "properties": {
      -    "actions": {
      -      "additionalProperties": {
      -        "additionalProperties": false,
      -        "properties": {
      -          "address": {
      -            "type": "string"
      -          },
      -          "kind": {
      -            "enum": [
      -              "database"
      -            ],
      -            "type": "string"
      -          },
      -          "max_rows": {
      -            "type": "integer"
      -          },
      -          "parameters": {
      -            "additionalProperties": {
      -              "enum": [
      -                "text",
      -                "integer",
      -                "number",
      -                "boolean",
      -                "timestamp"
      -              ],
      -              "type": "string"
      -            },
      -            "type": "object"
      -          },
      -          "sql": {
      -            "type": "string"
      -          }
      -        },
      -        "required": [
      -          "kind",
      -          "address",
      -          "sql",
      -          "parameters"
      -        ],
      -        "type": "object"
      -      },
      -      "type": "object"
      -    },
      -    "collections": {
      -      "items": {
      -        "additionalProperties": false,
      -        "properties": {
      -          "fields": {
      -            "items": {
      -              "type": "string"
      -            },
      -            "type": [
      -              "null",
      -              "array"
      -            ]
      -          },
      -          "name": {
      -            "type": "string"
      -          }
      -        },
      -        "required": [
      -          "name",
      -          "fields"
      -        ],
      -        "type": "object"
      -      },
      -      "type": [
      -        "null",
      -        "array"
      -      ]
      -    },
      -    "recipe": {
      -      "additionalProperties": false,
      -      "properties": {
      -        "server": {
      -          "additionalProperties": false,
      -          "properties": {
      -            "label": {
      -              "type": "string"
      -            },
      -            "url": {
      -              "format": "uri",
      -              "type": "string"
      -            }
      -          },
      -          "required": [
      -            "url",
      -            "label"
      -          ],
      -          "type": "object"
      -        },
      -        "snapshot": {
      -          "additionalProperties": {
      -            "additionalProperties": false,
      -            "properties": {
      -              "cells": {
      -                "description": "With columns: path on a row to its values, like $.f.",
      -                "type": "string"
      -              },
      -              "columns": {
      -                "description": "When rows are lists of values: path to the column names, like $.schema.fields[*].name. Fields then name columns.",
      -                "type": "string"
      -              },
      -              "delimiter": {
      -                "description": "With columns: the header at columns and each row are lines split by this comma, semicolon, tab or bar.",
      -                "type": "string"
      -              },
      -              "document": {
      -                "description": "Path to text holding the rows' JSON, after any prose lines, like $.content. Rows, columns and fields paths walk that JSON.",
      -                "type": "string"
      -              },
      -              "fields": {
      -                "additionalProperties": {
      -                  "type": "string"
      -                },
      -                "type": "object"
      -              },
      -              "rows": {
      -                "additionalProperties": false,
      -                "properties": {
      -                  "path": {
      -                    "type": "string"
      -                  },
      -                  "step": {
      -                    "type": "string"
      -                  }
      -                },
      -                "required": [
      -                  "step",
      -                  "path"
      -                ],
      -                "type": "object"
      -              },
      -              "value": {
      -                "description": "With columns: path on each value, like $.v.",
      -                "type": "string"
      -              }
      -            },
      -            "required": [
      -              "rows",
      -              "fields"
      -            ],
      -            "type": "object"
      -          },
      -          "type": "object"
      -        },
      -        "steps": {
      -          "items": {
      -            "additionalProperties": false,
      -            "properties": {
      -              "arguments": {
      -                "type": "object"
      -              },
      -              "id": {
      -                "type": "string"
      -              },
      -              "pagination": {
      -                "additionalProperties": false,
      -                "properties": {
      -                  "maximum_pages": {
      -                    "maximum": 100,
      -                    "minimum": 1,
      -                    "type": "integer"
      -                  },
      -                  "next_cursor": {
      -                    "type": "string"
      -                  }
      -                },
      -                "required": [
      -                  "next_cursor",
      -                  "maximum_pages"
      -                ],
      -                "type": "object"
      -              },
      -              "result": {
      -                "additionalProperties": false,
      -                "properties": {
      -                  "content_index": {
      -                    "type": "integer"
      -                  },
      -                  "format": {
      -                    "type": "string"
      -                  }
      -                },
      -                "required": [
      -                  "format",
      -                  "content_index"
      -                ],
      -                "type": "object"
      -              },
      -              "tool": {
      -                "type": "string"
      -              }
      -            },
      -            "required": [
      -              "id",
      -              "tool",
      -              "arguments"
      -            ],
      -            "type": "object"
      -          },
      -          "maxItems": 8,
      -          "minItems": 1,
      -          "type": "array"
      -        },
      -        "version": {
      -          "const": 1,
      -          "type": "integer"
      -        }
      -      },
      -      "required": [
      -        "version",
      -        "server",
      -        "steps",
      -        "snapshot"
      -      ],
      -      "type": "object"
      -    },
      -    "recipe_digest": {
      -      "type": "string"
      -    },
      -    "selection": {
      -      "type": "string"
      -    },
      -    "source_label": {
      -      "type": "string"
      -    }
      -  },
      -  "required": [
      -    "source_label",
      -    "selection",
      -    "collections",
      -    "recipe"
      -  ],
      -  "type": [
      -    "null",
      -    "object"
      -  ]
      -}
    • removedInput schema / properties / development_token
      Removed value: -{
      -  "type": "string"
      -}
    • changedInput schema / properties / name / description
      Previous value: -"display name; with app_id and no files: rename"New value: +"display name, when creating"
    • removedInput schema / properties / role
      Removed value: -{
      -  "description": "for a grant share, user or editor; for a link, omit or user -- a link cannot be editor",
      -  "enum": [
      -    "user",
      -    "editor"
      -  ],
      -  "type": "string"
      -}
    • removedInput schema / properties / share
      Removed value: -{
      -  "description": "when creating: how to share it once live: \"link\" (anyone holding it, no sign-in), \"public\", or \"grant\" by subject_or_email; omit to keep it private",
      -  "enum": [
      -    "link",
      -    "public",
      -    "grant"
      -  ],
      -  "type": "string"
      -}
    • changedInput schema / properties / slug / description
      Previous value: -"full label on rename; creation adds the organization handle. Earlier names open until removed"New value: +"address words, when creating; the organization handle is added"
    • removedInput schema / properties / subject_or_email
      Removed value: -{
      -  "description": "who to invite when share is \"grant\": their email address, or their Cloche account id",
      -  "type": "string"
      -}
    • changedOutput schema / properties / access_note / description
      Previous value: -"set on every publish while the app is private with nobody invited and no link, so only its owner can open it, on every skill publish with who can install it, and when publish made a link, when it stops; this result's own message already says it"New value: +"set on every publish while the app is private with nobody invited and no link, so only its owner can open it, and on every skill publish with who can install it; this result's own message already says it"
  4. Changed1 schema field changed
    • addedInput schema / properties / base_commit
      Added value: +{
      +  "description": "the exact GitHub commit in get_app_context note for a connected app. Files then carry changes against that commit",
      +  "type": "string"
      +}
  5. Changed2 schema fields changed
    • changedInput schema / properties / share / description
      Previous value: -"when creating: how to share it once live: \"link\", \"public\", or \"grant\" by subject_or_email; omit to keep it private"New value: +"when creating: how to share it once live: \"link\" (anyone holding it, no sign-in), \"public\", or \"grant\" by subject_or_email; omit to keep it private"
    • changedOutput schema / properties / access_note / description
      Previous value: -"set on every publish while the app is private with nobody invited and no link, so only its owner can open it, and on every skill publish with who can install it; this result's own message already says it"New value: +"set on every publish while the app is private with nobody invited and no link, so only its owner can open it, on every skill publish with who can install it, and when publish made a link, when it stops; this result's own message already says it"
  6. Changed2 schema fields changed
    • addedInput schema / properties / data_publication / properties / recipe / properties / snapshot / additionalProperties / properties / delimiter
      Added value: +{
      +  "description": "With columns: the header at columns and each row are lines split by this comma, semicolon, tab or bar.",
      +  "type": "string"
      +}
    • addedInput schema / properties / data_publication / properties / recipe / properties / snapshot / additionalProperties / properties / document
      Added value: +{
      +  "description": "Path to text holding the rows' JSON, after any prose lines, like $.content. Rows, columns and fields paths walk that JSON.",
      +  "type": "string"
      +}
  7. Changed4 schema fields changed
    • changedInput schema / allOf
      Previous value: -[
      -  {
      -    "if": {
      -      "required": [
      -        "data_publication"
      -      ],
      -      "type": "object"
      -    },
      -    "then": {
      -      "properties": {
      -        "files": {
      -          "minItems": 1,
      -          "type": "array"
      -        }
      -      },
      -      "required": [
      -        "files"
      -      ],
      -      "type": "object"
      -    }
      -  }
      -]New value: +[
      +  {
      +    "if": {
      +      "required": [
      +        "data_publication"
      +      ],
      +      "type": "object"
      +    },
      +    "then": {
      +      "anyOf": [
      +        {
      +          "properties": {
      +            "files": {
      +              "minItems": 1,
      +              "type": "array"
      +            }
      +          },
      +          "required": [
      +            "files"
      +          ],
      +          "type": "object"
      +        },
      +        {
      +          "properties": {
      +            "edits": {
      +              "minItems": 1,
      +              "type": "array"
      +            }
      +          },
      +          "required": [
      +            "edits"
      +          ],
      +          "type": "object"
      +        }
      +      ]
      +    }
      +  }
      +]
    • addedInput schema / properties / data_publication / properties / actions
      Added value: +{
      +  "additionalProperties": {
      +    "additionalProperties": false,
      +    "properties": {
      +      "address": {
      +        "type": "string"
      +      },
      +      "kind": {
      +        "enum": [
      +          "database"
      +        ],
      +        "type": "string"
      +      },
      +      "max_rows": {
      +        "type": "integer"
      +      },
      +      "parameters": {
      +        "additionalProperties": {
      +          "enum": [
      +            "text",
      +            "integer",
      +            "number",
      +            "boolean",
      +            "timestamp"
      +          ],
      +          "type": "string"
      +        },
      +        "type": "object"
      +      },
      +      "sql": {
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "kind",
      +      "address",
      +      "sql",
      +      "parameters"
      +    ],
      +    "type": "object"
      +  },
      +  "type": "object"
      +}
    • changedInput schema / properties / data_publication / required
      Previous value: -[
      -  "source_label",
      -  "selection",
      -  "recipe_digest",
      -  "collections",
      -  "recipe"
      -]New value: +[
      +  "source_label",
      +  "selection",
      +  "collections",
      +  "recipe"
      +]
    • changedOutput schema / properties / data_url / description
      Previous value: -"where the owner keeps a copy, and approves a data update that waits"New value: +"where the owner keeps a copy"
  8. Changed1 schema field changed
    • changedInput schema / properties / organization / description
      Previous value: -"when creating: which organization to create it in; omit to use your personal one"New value: +"when creating: destination organization id. Required when you belong to multiple organizations"
  9. Changed1 schema field changed
    • addedOutput schema / properties / personal_data
      Added value: +{
      +  "description": "what looks like personal data in this version, as a count, a kind and a place such as \"3 email addresses in index.html\", then each file that was not checked. It holds no value",
      +  "items": {
      +    "type": "string"
      +  },
      +  "type": [
      +    "null",
      +    "array"
      +  ]
      +}
  10. Changed1 schema field changed
    • changedOutput schema / properties / url / description
      Previous value: -"the app's own URL, or a skill's page in Cloche until the skill is public. It stays private unless you shared it"New value: +"the app's own URL, a Template's page in Cloche, or a skill's page until it is public. The app stays private unless you shared it"
  11. Changed3 schema fields changed
    • changedInput 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"
    • changedInput schema / properties / schema / properties / collections / items / properties / access / enum
      Previous value: -[
      -  "private",
      -  "shared"
      -]New value: +[
      +  "private",
      +  "shared",
      +  "assigned"
      +]
    • addedInput schema / properties / schema / properties / collections / items / properties / assigned_to
      Added value: +{
      +  "description": "assigned only: the text field holding a person's id",
      +  "type": "string"
      +}
  12. Changed4 schema fields changed
    • addedInput schema / properties / answers
      Added value: +{
      +  "description": "replies to open comments by comment_id, shown under each with this version",
      +  "items": {
      +    "additionalProperties": false,
      +    "properties": {
      +      "comment_id": {
      +        "type": "string"
      +      },
      +      "text": {
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "comment_id",
      +      "text"
      +    ],
      +    "type": "object"
      +  },
      +  "type": [
      +    "null",
      +    "array"
      +  ]
      +}
    • addedOutput schema / properties / answers
      Added value: +{
      +  "additionalProperties": false,
      +  "description": "recorded ids, ignored ids (no open comment of this app has the id, or the answer was blank or repeated) and unsaved ids (a server problem kept the answer from being saved, so send it again)",
      +  "properties": {
      +    "ignored": {
      +      "items": {
      +        "type": "string"
      +      },
      +      "type": [
      +        "null",
      +        "array"
      +      ]
      +    },
      +    "recorded": {
      +      "items": {
      +        "type": "string"
      +      },
      +      "type": [
      +        "null",
      +        "array"
      +      ]
      +    },
      +    "unsaved": {
      +      "items": {
      +        "type": "string"
      +      },
      +      "type": [
      +        "null",
      +        "array"
      +      ]
      +    }
      +  },
      +  "required": [
      +    "recorded",
      +    "ignored"
      +  ],
      +  "type": [
      +    "null",
      +    "object"
      +  ]
      +}
    • changedOutput schema / properties / reason / description
      Previous value: -"set when status is \"failed\" with what stopped the publish or \"awaiting_upload\" with the next step to finish the upload"New value: +"set when status is \"failed\" with what stopped the publish, \"awaiting_upload\" with the next step to finish the upload or \"waiting\" with who decides"
    • changedOutput schema / properties / status / description
      Previous value: -"\"ready\" when the files are live, \"failed\" when nothing went live, \"reserved\" when this call only took the address and there are no files yet, \"awaiting_upload\" when this call went no further than naming the bytes it needs -- nothing is live"New value: +"\"ready\" when the files are live, \"failed\" when nothing went live, \"reserved\" when this call only took the address and there are no files yet, \"awaiting_upload\" when this call went no further than naming the bytes it needs -- nothing is live, \"waiting\" when the files are stored and an approver must decide before they go live"
  13. Changed3 schema fields changed
    • changedOutput schema / properties / access_note / description
      Previous value: -"set on every publish while the app is private with nobody invited and no link, so only its owner can open it; this result's own message already says it"New value: +"set on every publish while the app is private with nobody invited and no link, so only its owner can open it, and on every skill publish with who can install it; this result's own message already says it"
    • addedOutput schema / properties / kind
      Added value: +{
      +  "description": "\"app\" or \"skill\": what this publish put live",
      +  "type": "string"
      +}
    • changedOutput schema / properties / url / description
      Previous value: -"the app's own URL; it stays private unless you shared it"New value: +"the app's own URL, or a skill's page in Cloche until the skill is public. It stays private unless you shared it"
  14. Changed3 schema fields changed
    • addedInput schema / properties / data_publication / properties / recipe / properties / snapshot / additionalProperties / properties / cells
      Added value: +{
      +  "description": "With columns: path on a row to its values, like $.f.",
      +  "type": "string"
      +}
    • addedInput schema / properties / data_publication / properties / recipe / properties / snapshot / additionalProperties / properties / columns
      Added value: +{
      +  "description": "When rows are lists of values: path to the column names, like $.schema.fields[*].name. Fields then name columns.",
      +  "type": "string"
      +}
    • addedInput schema / properties / data_publication / properties / recipe / properties / snapshot / additionalProperties / properties / value
      Added value: +{
      +  "description": "With columns: path on each value, like $.v.",
      +  "type": "string"
      +}
  15. Changed1 schema field changed
    • changedInput schema / properties / slug / description
      Previous value: -"Latin URL words before the handle. On an existing app, moves its address and the old one redirects"New value: +"full label on rename; creation adds the organization handle. Earlier names open until removed"
  16. Changed1 schema field changed
    • changedInput schema / properties / icon / description
      Previous value: -"when creating: a Tabler icon name saying what the app is, e.g. list-check; a name Cloche does not carry falls back to its own mark"New value: +"when creating: a Tabler icon name saying what the app is, e.g. list-check. An unknown name is read by its words, then the app name"
  17. First observed

TDQS

A4.9/5.0
Behavior5/5

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

Annotations already flag destructive and non-idempotent, and the description adds substantial context beyond them: files are live only when the call returns ready, a stale base is refused so concurrent edits are reloaded, omitting base_version replaces every file, a truncated bundle shows as unexpectedly small bundle_bytes, server code/credentials are dropped and no auth is invented, and replaces must resend the whole schema.

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?

Front-loaded with the create/change distinction, then organized into paragraphs by concern (edits, assets, work_context, schema/data, rewrites, versions, results). Each rule earns its place for a 17-parameter tool, but the density is high and several rules (PII detection, icon rule, angle brackets) sit far from the parameters they govern.

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, destructive, multi-mode tool the definition covers modes, versioning, assets, schema/collections, data-source flow, rewrite policy, and the success signal (ready). With an output schema present, return values need not be enumerated, and the few mentions (bundle_bytes, ready, PII findings) are sufficient pointers.

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 already 94%, yet the description still adds operational meaning: edits' find must match exactly once unless count is given and a miss refuses the publish, assets require a second publish after PUT, base_commit vs base_version for connected apps, work_context content and prohibited content, and removed_paths relative to base_version.

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?

"Create an app from its files, or change one" names both the verb and the resource, then immediately splits the two modes (create vs. change) and their discriminating parameters. It is clearly distinguishable from siblings such as get_app_context, list_apps, rename_app, and reserve_app.

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

Usage Guidelines5/5

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

Explicit routing: use change when you have app_id and base_version, use create when app_id is omitted and intent is supplied, use list_apps/get_app_context for ids and prior versions, request_source_data when data comes from another service, upload_asset via the PUT location for binaries. It also states exclusions (never found by name, never SQL, no rows in files/work_context) and what a stale base does instead of overwriting.

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.