Skip to main content
Glama

generate_asyncapi_spec

Generate AsyncAPI 3.0 spec for event-driven / message-based APIs

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": {
      "service": "<service>",
      "channels": "<channels>",
      "broker": "<broker>"
    },
    "name": "generate_asyncapi_spec"
  }
}

Input Schema

NameRequiredDescriptionDefault
brokerYes
serviceYes
channelsYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added
  2. Removed
  3. First observed

TDQS

C2.9/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full behavioral burden and mostly drops it. It does not say whether the spec is returned inline, written to disk, or registered somewhere, nor whether generation is idempotent or overwrites anything, and there is no mention of validation failures for unsupported broker/channel combinations.

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?

A single short sentence with the artifact and domain front-loaded and no filler. It is efficient but so terse that the terseness reads as under-specification rather than discipline.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a three-required-parameter generation tool with no annotations and no output schema, the definition should at minimum explain the output destination/shape and the meaning of channels. As written, an agent knows only the spec version and target paradigm, leaving key invocation details to guesswork.

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

Parameters2/5

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

Schema description coverage is 0% with three required parameters, so the description needs to compensate and does not. Nothing explains what a "service" name means in the generated document, what form entries in "channels" take (raw names, paths, full channel objects as strings?), or how "broker" affects output; only the broker enum is self-documenting.

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?

States a specific verb and artifact ("Generate AsyncAPI 3.0 spec") plus the domain it targets ("event-driven / message-based APIs"), which implicitly separates it from the REST-oriented sibling generate_openapi_spec. It stops short of naming that sibling, but the resource and version are unambiguous.

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 by the phrase "event-driven / message-based APIs", which tells an agent the class of API this applies to and implies REST/HTTP specs are out of scope. There is no explicit when-to-use/when-not statement or named alternative, so selection still requires inference.

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.