Skip to main content
Glama

Save an endpoint definition

add_endpoint

Save the definition of one call into your own system that the tester may make during a run (for example "create a voucher"). This only stores the definition: it sends no request itself. The tester sees only the name, the description and what the call returned. bodyTemplate may contain {{param}} placeholders the tester fills in. Headers (for example Authorization) are encrypted and never returned. Reference: https://testsy.dev/docs/mcp/

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": {
      "projectId": "<projectId>",
      "name": "<name>",
      "description": "<description>",
      "url": "<url>"
    },
    "name": "add_endpoint"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlYeshttps://… address
nameYesShort name (up to 40 characters), for example create_voucher
methodNoHTTP method (default POST)
headersNoRequest headers, up to 20 (write-only)
projectIdYesProject id (p_…)
descriptionYesWhat it does and when to use it (up to 600 characters)
bodyTemplateNoRequest body with {{param}} placeholders, optional

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare this is a non-read-only, non-destructive, non-open-world write, and the description adds genuinely new behavior: no outbound request is sent, headers are encrypted and never returned, and the tester only sees name, description and the call's response. It does not address what happens on a duplicate save (annotations say idempotentHint=false), which is the notable remaining gap.

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?

Four short sentences that front-load the purpose and then layer the non-obvious constraints; nothing is padded. The trailing docs link is marginal filler but cheap.

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 7-parameter create tool with full schema coverage and annotations present, the description covers purpose, side effects and sensitive-data handling. The one omission is what the call returns (for example an endpoint id) needed for follow-up calls, which matters given there is no output schema.

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

Parameters4/5

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

Schema coverage is 100%, so the baseline is 3; the description still adds meaning the schema lacks, notably that bodyTemplate placeholders are filled in by the tester and that header values are stored encrypted, explaining why headers is write-only.

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 resource ("Save the definition of one call") and adds an example ("create a voucher") plus the key scope clarification that it only stores the definition and sends no request. It never names a sibling such as list_endpoints or delete_endpoint, so differentiation from other endpoint tools is left to the reader.

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?

The phrase "that the tester may make during a run" implies the context in which this is appropriate, but there is no explicit when-to-use/when-not-to-use guidance and no named alternative or prerequisite. The agent must infer that this is the setup step before running a test.

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.