Skip to main content
Glama

Specway API Library

Show or hide an endpoint

specway_set_endpoint_visible
DestructiveIdempotent

Shows or hides one endpoint of an API in the docs. A hidden endpoint stays in the API and in Specway's editor and comes back when shown again; readers of the docs stop seeing it. The change is live at once. Setting the state it is already in changes nothing.

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": {
      "api_id": "<api_id>",
      "endpoint_id": "<endpoint_id>",
      "visible": "<visible>"
    },
    "name": "specway_set_endpoint_visible"
  }
}

Input Schema

NameRequiredDescriptionDefault
api_idYesAn api_id from specway_list_apis. Opaque.
visibleYestrue shows the endpoint in the docs, false hides it.
endpoint_idYesAn endpoint_id from specway_get_api. Opaque.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior4/5

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

Annotations already flag it as non-read-only, destructive, idempotent and open-world; the description earns credit by explaining exactly what 'destructive' means here: the endpoint survives in the API and editor, is reversible by showing again, readers lose visibility, and the effect is immediate. It does not cover permission/auth requirements or whether the editor state of other collaborators is affected.

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?

Three tight sentences, front-loaded with the action and followed by the consequence in a logical order. The reversibility fact and the no-op fact are distinct, non-redundant pieces of information with no filler.

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 three-parameter toggle with full schema coverage and no output schema, the description covers action, scope, reversibility and immediacy well. Only authorization requirements and any docs-publication/caching caveat are absent, which are minor for this level of complexity.

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% and every parameter (api_id, endpoint_id, visible) already carries its own description, including the true/false meaning of 'visible'. The description adds no format, default, or edge-case semantics beyond the schema, 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?

The description opens with a specific verb pair and a precisely scoped resource: 'Shows or hides one endpoint of an API in the docs.' The 'in the docs' qualifier separates it cleanly from editing the endpoint itself (as siblings like specway_update_endpoint_description would do) and from API-level activation.

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

Usage Guidelines3/5

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

Usage is implied — you call it when you want readers to stop seeing a specific endpoint — but there is no explicit when-to-use/when-not guidance and no named alternative or prerequisite. The note that setting the existing state 'changes nothing' is a useful operational hint but not selection 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