Skip to main content
Glama

ROKI Connect

Validate a ROKI Connect request payload

roki_validate_request
Read-onlyIdempotent

Validate a payload against the official schema WITHOUT sending it, and check the business rules the API enforces. Critical for payment creation: it ignores unknown fields and returns 201, so a typo produces a misconfigured payment rather than an error. The response names what it dropped in warnings, but by then the payment exists - validating here means it is never created. Always validate before writing or shipping integration code.

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": {
      "operation": "<operation>",
      "payload": "<payload>"
    },
    "name": "roki_validate_request"
  }
}

Input Schema

NameRequiredDescriptionDefault
payloadYesThe JSON request body you intend to send.
operationYesoperationId, e.g. "createPayment".

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?

Annotations already cover the safety profile (readOnly, non-destructive, idempotent), but the description adds behavior those annotations cannot express: the API ignores unknown fields and returns 201, and the `warnings` array only reveals dropped fields after the resource already exists. That is exactly the kind of subtle failure mode an agent needs disclosed before choosing a path.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Four tight sentences, front-loaded with the core action and scoping, then escalating to the consequence of skipping it. Nothing is repeated and nothing is padding.

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?

With no output schema, the description helpfully discloses the `warnings` response field and the validation-vs-send distinction, which is enough for a two-parameter read-only tool. It does not enumerate which business rules are checked, leaving the agent to trust the schema, a minor residual gap.

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% with two required parameters, so the schema already documents `payload` and `operation`. The description reinforces that the payload is the body you intend to send but adds no meaning for the `operation` parameter (the operationId example lives only in 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?

The description states a specific verb and resource — validate a payload against the official schema plus API business rules — and draws a sharp line between this and actually sending the request ("WITHOUT sending it"), which separates it from the sandbox/try sibling. An agent can tell what this does without opening the schema.

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?

"Always validate before writing or shipping integration code" gives a concrete when-to-use rule, reinforced by the payment-creation example where skipping validation causes a silent misconfiguration. It stops short of naming a specific alternative tool (e.g. a sandbox-send sibling) as the contrast, so it falls just short of a 5.

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