Skip to main content
Glama

Specway API Library

Turn an API on or off

specway_set_api_active
DestructiveIdempotent

Turns an API on or off in the docs. Off hides the whole API from readers and keeps everything (pages, endpoints, settings), and an API that is off does not count toward the plan's limit on APIs. On shows it again. Turning one on is refused when the organization's plan limit on APIs turned on is already reached; nothing changes then. 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>",
      "active": "<active>"
    },
    "name": "specway_set_api_active"
  }
}

Input Schema

NameRequiredDescriptionDefault
activeYestrue shows the API to readers, false hides it.
api_idYesAn api_id from specway_list_apis. Opaque.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior5/5

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

Goes well beyond the annotations: it clarifies that 'off' is a visibility change that deletes nothing ('keeps everything (pages, endpoints, settings)'), that inactive APIs do not count against the plan's API limit, that activation is refused atomically at the plan cap ('nothing changes then'), and that no-op calls are harmless. These are exactly the side effects and guardrails an agent needs before mutating state.

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 core action, then the consequences and the failure mode. Every sentence carries information, though the closing sentence restates the idempotentHint already declared in annotations, which is mildly 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 two-parameter state toggle with no output schema, the description covers the effect on readers, data retention, billing/quota implications, and error behavior. Nothing an agent needs to invoke it safely 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 coverage is 100%, with both parameters documented inline including the api_id provenance. The description reinforces the meaning of 'active' in reader-facing terms, but adds no format, constraint, or sourcing detail 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?

States a specific verb and resource ('Turns an API on or off in the docs') and immediately defines the scope as the whole API, which distinguishes it from the endpoint-level sibling specway_set_endpoint_visible without naming it.

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?

Clearly establishes the context of use: off for hiding an entire API from readers while preserving content, on to restore it. It also states the exact failure condition (plan limit on active APIs) and that a no-op occurs when the state is unchanged. It stops short of explicitly routing to alternative tools for per-endpoint visibility.

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