Skip to main content
Glama
Replaced by its MCP Registry listing

This endpoint is listed in the official MCP Registry as AALY. If you published it, claim ownership there.

create_endpoint

Write-only schema tool: creates one route DEFINITION record in the project's schema. It does NOT call any API, send any HTTP request, or read or write application data — method below configures which verb the route being defined will answer, it is not a verb this tool performs. Use list_endpoints to read routes back.

What it defines: a custom, non-CRUD REST route attached to an entity, e.g. POST /orders/summary. This record IS the route's identity — its action word, HTTP method, auth mode and execution mode. It runs no code by itself: attach one or more Functions to it via create_function(entity_id=<this endpoint's returned id>, trigger_point='endpoint') — an endpoint's own id, not the entity's, is what a Function's entity_id must reference for that trigger point. Read the aaly://platform/functions resource before your first one.

auth: 'required' (default) behaves exactly like ordinary CRUD — callers need a valid token. 'public' accepts requests with NO Authorization header at all — there is no caller identity for its Functions to act as, so they typically call back into the project's own REST API using an API key stored via set_secret rather than an inherited token. There is no per-endpoint permission scoping yet: a public route is exactly as powerful as whatever key its Functions use, so treat a stored key backing a public route as a full-privilege service account and validate its input defensively (create_field with entity_id set to this endpoint's id, location 'body'/'query', turns on real request validation instead of accepting free-form JSON).

No nested paths: the URL is always /{entity}/{action}, exactly one path segment after the entity.

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": {
      "entity_id": "<entity_id>",
      "action": "<action>",
      "method": "<method>"
    },
    "name": "create_endpoint"
  }
}

Input Schema

NameRequiredDescriptionDefault
authNoDefaults to 'required'. See the tool description above.
labelNo
actionYesURL path segment after the entity, e.g. 'summary' for /orders/summary. Lowercase letters, digits and hyphens, starting with a letter.
methodYesConfiguration only — the single HTTP method the route being defined will respond to when a client later calls it. This tool sends no request of its own. Create a separate endpoint for another method on the same action.
entity_idYesThe entity this route is attached to (e.g. 'ENT7'). The URL becomes /{entity}/{action}.
project_idNoGet it from whoami or list_projects.
descriptionNoWhat this route does — surfaced in the generated OpenAPI spec.
execution_modeNoDefaults to 'synchronous': the attached Functions' final output becomes the HTTP response. 'asynchronous': the caller gets an immediate 202 acknowledgement and the Functions run in the background.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / project_id / description
      Previous value: -"Optional if whoami returned a default_project_id."New value: +"Get it from whoami or list_projects."
  2. First observed

TDQS

A4.8/5.0
Behavior5/5

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

Annotations only declare it is a non-destructive, non-idempotent, non-open-world write; the description goes far beyond by disclosing that the tool performs no HTTP traffic and touches no application data, and by explaining the security semantics of auth='public' — no caller identity, Functions acting under a stored API key, no per-endpoint permission scoping, and the instruction to treat such a key as full-privilege. That is substantial risk context the annotations do not carry.

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?

It is front-loaded with the core distinction (definition record, no API call) and organized into labeled blocks (What it defines, auth, No nested paths) that make scanning easy. It runs long, and the method-is-configuration point is repeated in both the description and the method parameter's schema text, which is mild redundancy rather than filler.

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 write tool with 8 parameters, no output schema, and non-obvious downstream coupling, the description covers everything needed: return value usage (the endpoint id), the path-shape constraint (exactly one segment after the entity), the auth trade-off, and the follow-on steps. Nothing an agent needs in order to call it correctly or to avoid a wrong assumption is missing.

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 88%, so the baseline is 3, and the description earns above that by explaining the auth enum's real-world behavior (required behaves like CRUD; public accepts no Authorization header) and by reinforcing that method is configuration for the future route rather than an action this tool performs. It adds less to execution_mode, label, and description, which are left to the schema, so it falls short of a 5.

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 precise verb+resource: creates one route DEFINITION record in the project's schema. It immediately distinguishes itself from what an agent might assume (no API call, no HTTP request, no data read/write) and names list_endpoints as the read-path sibling, so the agent can separate it from create_function, create_field, list_endpoints, and update_endpoint without opening schemas.

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

Usage Guidelines5/5

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

Gives explicit when/when-not guidance: use list_endpoints to read routes back, use create_function with trigger_point='endpoint' to attach execution, use create_field with location 'body'/'query' to enable real request validation, and read the aaly://platform/functions resource before the first function. It also explains that the returned endpoint id (not the entity id) is what a Function's entity_id must reference, which is exactly the kind of ordering/selection guidance an agent needs.

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