Skip to main content
Glama

Try a RailCore API endpoint

try_endpoint

Send one real request to a RailCore API read endpoint with your account and return its answer: status, request ID, requests counted and left, and the response body. It counts against your plan like any API request, so ask the user first. max_requests caps what it may count (default 1); a request that would count more is refused before it is sent. At most 30 tries an hour. Requires sign-in to your RailCore account. The first try also asks permission to make test requests.

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": {
      "endpoint": "<endpoint>"
    },
    "name": "try_endpoint"
  }
}

Input Schema

NameRequiredDescriptionDefault
bodyNoThe JSON body as text, for the two POST endpoints only (batch-seat-availability, compare-journeys), such as {"journeys": [{"from": "BSL", "to": "ADI", "date": "2026-12-01"}]}.
paramsNoPath and query parameters by name, every value as a string, such as {"q": "pune", "limit": "5"} or {"train_number": "12951"}. Dates as YYYY-MM-DD.
endpointYesA read endpoint: an id (search-stations), a method and path (GET /stations/search) or a URL.
max_requestsNoThe most requests this try may count, 1 to 25. Default 1. Raise it only after the user agrees to the cost.

Output Schema

NameRequiredDescriptionDefault
okYes
urlYesThe public URL of the same request.
methodYes
statusYes
docs_urlYes
body_jsonYesThe response body as text, cut near 32 KB.
truncatedYes
error_codeNo
request_idNo
endpoint_idYes
error_messageNo
quoted_requestsYesWhat this request was expected to count, before it was sent.
requests_countedNoFrom X-RailCore-Credits-Cost.
requests_remainingNoFrom X-RailCore-Credits-Remaining.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false, openWorldHint=true, idempotentHint=false and destructiveHint=false, so the safety profile is largely covered. The description still adds real value beyond them: the request counts against the plan, a 30-per-hour cap, the sign-in requirement, the first-run permission prompt, and that an over-cap request is refused before being sent. That is solid added context, though it does not describe failure behavior or what a refused/errored call returns.

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-loads the action and the return payload, then layers cost, cap, rate limit and auth in short clauses. Dense but every sentence carries operational information; no filler. Slightly list-like, but appropriate for a tool with several preconditions.

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?

Covers the things an agent must know before calling: cost, rate limit, auth, and the permission prompt, and an output schema exists so return values need not be spelled out. The main gap is that it never routes the agent to get_endpoint for a no-cost inspection or to explain_error on failure, which matters given the sibling set.

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 description coverage is 100%, so the schema already documents endpoint, params, body and max_requests, making 3 the baseline. The description adds one genuinely new semantic for max_requests: it caps what the try may count, defaults to 1, and an over-cap request is refused before sending. The other parameters get no meaning beyond the schema.

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 ('Send one real request to a RailCore API read endpoint') and enumerates what comes back: status, request ID, requests counted and left, and the response body. It also scopes the tool to read endpoints. It does not name or contrast with the sibling get_endpoint, so an agent must infer which one actually executes the call.

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?

Gives clear preconditions and cost guidance: 'ask the user first', 'Raise it only after the user agrees to the cost', and 'Requires sign-in to your RailCore account'. It does not explicitly say when to prefer get_endpoint or explain_error instead, so the alternative-selection guidance is implied rather than stated.

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