Skip to main content
Glama

Publish Sheet View

view.publish
DestructiveIdempotent

Publish a view as a read-only page (an app holding the view), viewable by anyone with the link unless public is false. Needs Admin access on the view's sheet. Confirm with the user before calling it. Returns the page's path. 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": {
      "viewId": "<viewId>"
    },
    "name": "view.publish"
  }
}

Input Schema

NameRequiredDescriptionDefault
publicNotrue: anyone with the link can view it. false: only members who have access.
reasonNoWhy you are doing this, in one sentence the approver reads if Ask first holds the call
viewIdYesThe view to publish (from sheet.schema)
targetNotesNoA short note per target, keyed by the id or Index you pass

Output Schema

NameRequiredDescriptionDefault
urlNoPath of the published page, on the org's panel domain
appIdNo
publicNo
statusNoThe call waits for a person's approval; nothing has changed
createdNofalse when the view was already published and was reused
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. Changed5 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
      Added value: +{
      +  "const": "pending_approval",
      +  "description": "The call waits for a person's approval; nothing has changed",
      +  "type": "string"
      +}
    • removedOutput schema / required
      Removed value: -[
      -  "appId",
      -  "url",
      -  "public",
      -  "created"
      -]
  3. Added

TDQS

A4.1/5.0
Behavior4/5

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

Annotations declare destructiveHint=true, idempotent=true, openWorldHint=true, but give no operational detail; the description adds a lot: public link exposure semantics, admin requirement, mandatory user confirmation, and an approval gate where the call blocks and returns status "pending_approval" with nothing changing until approval. That covers the highest-risk traits (external exposure plus an asynchronous approval path) well. It does not discuss unpublishing/reversibility or rate limits, which keeps it at 4 rather than 5.

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?

The description is dense but front-loaded: what is produced, who can see it, required access, confirmation duty, return value, then the approval edge case and its parameter implications. Every sentence carries operational information and none is redundant.

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 destructive, externally-visible publish operation, the description covers permissions, visibility, confirmation, return value (the page path), and the pending-approval outcome. With an output schema present and full schema coverage, nothing an agent needs in order to call this correctly is missing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so the schema already defines public, reason, viewId and targetNotes, including that reason is read by an approver. The description restates the approver purpose and adds an instruction to pass reason and targetNotes, but contributes no new format, default, or edge-case meaning beyond the schema.

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 ('Publish a view') and immediately defines the result: a read-only page (an app holding the view) viewable by link. It does not explicitly differentiate itself from siblings such as app.publish or workflow.publish, but the phrase 'an app holding the view' scopes the outcome enough that an agent can tell what object is produced.

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 preconditions ('Needs Admin access on the view's sheet') and an explicit behavioral instruction ('Confirm with the user before calling it'), which is strong when-to-use guidance. It stops short of naming alternatives or when not to publish, so it falls short of full routing guidance.

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