Skip to main content
Glama

Publish App

app.publish
DestructiveIdempotent

Publish a custom app so the people it is shared with can open it. Confirm with the user before calling it. When the agent this app signs in as has Ask first on for this, the call waits for its manager's approval and returns status: "pending_approval"; nothing changes until they approve. Pass reason (and targetNotes per target) so the approver sees why.

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": "app.publish"
  }
}

Input Schema

NameRequiredDescriptionDefault
appIdYesThe app from app.create
reasonNoWhy you are doing this, in one sentence the approver reads if Ask first holds the call
targetNotesNoA short note per target, keyed by the id or Index you pass

Output Schema

NameRequiredDescriptionDefault
urlNo
appIdNo
statusNo
messageNo
approverNoWho decides it
approvalIdNoThe approval the call waits on

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • addedInput schema / properties / reason
      Added value: +{
      +  "description": "Why you are doing this, in one sentence the approver reads if Ask first holds the call",
      +  "type": "string"
      +}
    • addedInput schema / properties / targetNotes
      Added value: +{
      +  "additionalProperties": {
      +    "type": "string"
      +  },
      +  "description": "A short note per target, keyed by the id or Index you pass",
      +  "propertyNames": {
      +    "type": "string"
      +  },
      +  "type": "object"
      +}
  2. Changed6 schema fields changed
    • addedOutput schema / properties / approvalId
      Added value: +{
      +  "description": "The approval the call waits on",
      +  "type": "string"
      +}
    • addedOutput schema / properties / approver
      Added value: +{
      +  "description": "Who decides it",
      +  "type": "string"
      +}
    • addedOutput schema / properties / message
      Added value: +{
      +  "type": "string"
      +}
    • addedOutput schema / properties / status / anyOf
      Added value: +[
      +  {
      +    "type": "string"
      +  },
      +  {
      +    "const": "pending_approval",
      +    "description": "The call waits for a person's approval; nothing has changed",
      +    "type": "string"
      +  }
      +]
    • removedOutput schema / properties / status / type
      Removed value: -"string"
    • removedOutput schema / required
      Removed value: -[
      -  "appId",
      -  "url",
      -  "status"
      -]
  3. Added

TDQS

A4.4/5.0
Behavior5/5

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

Beyond the annotations (destructiveHint, idempotentHint, readOnlyHint=false), it discloses the approval flow, the exact `status: "pending_approval"` return, and that nothing takes effect until a manager approves. That is precisely the behavioral context the annotations cannot carry.

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?

Four sentences, each doing distinct work: purpose, confirmation requirement, approval edge case, and parameter advice. Purpose is front-loaded and there is no redundant restatement of the title or schema.

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?

The tool has an output schema, so return shape needn't be explained, yet the description still surfaces the one non-obvious response state an agent must handle. Nothing needed to call it correctly is missing.

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 already 100%, so the baseline would be 3, but the description adds purpose the schema can't convey: `reason` and `targetNotes` exist so the approver sees why, which explains why an agent should populate them rather than leave them empty.

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 gives a specific verb and resource ("Publish a custom app") plus the user-facing effect ("so the people it is shared with can open it"), which tells an agent exactly what changes. It never names app.unpublish or any sibling, so the differentiation is left to the agent.

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 an explicit precondition ("Confirm with the user before calling it") and a clear triggering condition tied to the approval policy. It stops short of naming alternatives or saying when not to publish, but the context is sufficient to choose the tool.

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.

Resources