Skip to main content
Glama

publish_portfolio

Publish or unpublish one of the authenticated user's portfolios. Published portfolios are public at airgallery.com/p/. Requires auth + 'write' scope.

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

Input Schema

NameRequiredDescriptionDefault
idYesPortfolio UUID
publishYestrue to publish, false to take it offline

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4/5.0
Behavior3/5

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

With no annotations, the description carries the full burden. It usefully discloses the key side effect (the portfolio becomes publicly reachable at airgallery.com/p/<slug>) and the auth/scope prerequisite, but says nothing about idempotency, whether unpublishing breaks existing links, or whether republishing reuses the same slug.

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?

Two tight sentences: the action and scope come first, then the visibility consequence and the auth requirement. No filler, no restatement of the tool name.

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 simple two-parameter mutation with full schema coverage, the description covers purpose, visibility outcome, and the scope requirement. It stops short of documenting error states or behavior for already-published/unpublished portfolios, which is the only remaining gap.

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 coverage is 100%, so both parameters are already documented, including that publish=true publishes and false takes it offline. The description adds no format or naming detail beyond what the schema supplies, so the baseline 3 applies.

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?

States a specific verb pair (publish/unpublish) and a scoped resource (the authenticated user's own portfolios), which clearly separates it from read-oriented siblings like get_portfolio, get_public_portfolio, and list_my_portfolios. An agent knows exactly what action this performs without opening the schema.

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?

The description clarifies that a single tool handles both directions of the toggle and that it requires auth plus 'write' scope, which is usable routing context. It does not explicitly state when not to use it (e.g. the portfolio must already exist / belong to the caller), but the scope restriction to 'the authenticated user's portfolios' implicitly excludes public portfolio reads.

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