Skip to main content
Glama

AgentValCon — Agent Value Gateway

Call a REST API from its OpenAPI document

adapt_rest
Destructive

Turn a public OpenAPI document into tools you can call, or call one of its endpoints (action list_tools only reads the document; action call sends the request). A call sends the HTTP method the document declares, including POST, PUT or DELETE, to that public API without credentials, so it can change data there. Use when the API you need has an OpenAPI document but no MCP server. Example arguments: {"spec_url": "https://api.example.org/openapi.json", "action": "list_tools"} Ads: one "Advertisement" in a separate sponsored array, also in _meta["biz.agentconcierge/sponsored"], never in the text content; results unchanged.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "adapt_rest"
  }
}

Input Schema

NameRequiredDescriptionDefault
specNoInline OpenAPI JSON specification object.
toolNoTool name to execute when action='call'.
actionNoAction: 'list_tools' to discover executable tools, 'call' to invoke an endpoint.
base_urlNoOptional override for API base URL.
spec_urlNoURL of the OpenAPI/Swagger JSON specification.
argumentsNoArguments for the tool invocation.
visitor_tokenNoYour visitor token (vt_…) so I remember you. Omit on first contact.

Output Schema

NameRequiredDescriptionDefault
okNo
textYes
intentNo
statusNo
visitorNoSession transport only; never put it in answer text.
executionNo
sponsoredNoOne labelled Advertisement, apart from the results; `disclosure` says paid or house. It does not affect ranking, selection or test results.
direct_onlyNoNot run by this gateway; not a recommendation.
recommendationsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed5 schema fields changed
    • changedOutput schema / description
      Previous value: -"Structured tool result. Fields vary by operation and outcome; inspect isError and execution status before acting."New value: +"Fields vary by operation; check isError and status first."
    • changedOutput schema / properties / direct_only / description
      Previous value: -"Matches the gateway does not run (connection_available false, with connection_reason and the provider's direct_endpoint when public). Never a recommendation to call through this server."New value: +"Not run by this gateway; not a recommendation."
    • changedOutput schema / properties / sponsored / description
      Previous value: -"One item labelled Advertisement, after and apart from the results: label, advertiser, title, text, url and a `disclosure` object (paid_placement and house say whether an advertiser paid or it is an AgentValCon house advertisement). Advertising does not affect ranking, selection or test results."New value: +"One labelled Advertisement, apart from the results; `disclosure` says paid or house. It does not affect ranking, selection or test results."
    • changedOutput schema / properties / visitor / description
      Previous value: -"Session transport only. Never include identity or tokens in answer text."New value: +"Session transport only; never put it in answer text."
    • removedOutput schema / properties / visitor / properties / token / description
      Removed value: -"Opaque continuation credential; send only in the session transport."
  2. Changed2 schema fields changed
    • addedOutput schema / properties / direct_only
      Added value: +{
      +  "description": "Matches the gateway does not run (connection_available false, with connection_reason and the provider's direct_endpoint when public). Never a recommendation to call through this server.",
      +  "items": {
      +    "type": "object"
      +  },
      +  "maxItems": 3,
      +  "type": "array"
      +}
    • addedOutput schema / properties / sponsored
      Added value: +{
      +  "description": "One item labelled Advertisement, after and apart from the results: label, advertiser, title, text, url and a `disclosure` object (paid_placement and house say whether an advertiser paid or it is an AgentValCon house advertisement). Advertising does not affect ranking, selection or test results.",
      +  "items": {
      +    "type": "object"
      +  },
      +  "maxItems": 1,
      +  "type": "array"
      +}
  3. Changed3 schema fields changed
    • addedOutput schema / properties / visitor / additionalProperties
      Added value: +false
    • addedOutput schema / properties / visitor / description
      Added value: +"Session transport only. Never include identity or tokens in answer text."
    • addedOutput schema / properties / visitor / properties
      Added value: +{
      +  "id": {
      +    "type": "string",
      +    "x-sensitive": true
      +  },
      +  "session_status": {
      +    "type": "string"
      +  },
      +  "token": {
      +    "description": "Opaque continuation credential; send only in the session transport.",
      +    "type": "string",
      +    "x-sensitive": true
      +  }
      +}
  4. First observed

TDQS

A3.6/5.0
Behavior4/5

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

The annotations already say this is not read-only, is destructive, and is open-world, and the description reinforces this with specifics: a call sends whatever HTTP method the document declares, including POST/PUT/DELETE, to the public API without credentials, so it can change data there. That unauthenticated-mutation disclosure is genuinely useful detail beyond the structured fields. It does not mention rate limits, error behavior, or confirmation requirements, so it does not reach a 5.

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

Conciseness2/5

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

The core definition is well front-loaded, but the trailing sentence about 'Ads: one Advertisement in a separate sponsored array...' is unrelated advertising-policy boilerplate that does not belong in a tool definition and forces the agent to parse irrelevant text. That unrelated sentence wastes space and dilutes an otherwise tight 3-sentence definition.

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

Completeness3/5

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

An output schema exists, so return values need not be described, and the mutation and no-credentials behavior is covered. However, for a 7-parameter, nested-object tool that can perform destructive POST/PUT/DELETE calls, the definition does not explain the two-step discover-then-call workflow or the relationship between spec and spec_url. The unrelated ad paragraph also detracts from completeness rather than adding to it.

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 coverage is 100%, including enum values for action, so the baseline is 3. The description adds a worked example ({spec_url, action: list_tools}) and restates the action semantics, but it says nothing about tool, arguments, base_url, spec vs spec_url, or visitor_token beyond what the schema already documents.

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?

The description states a concrete verb and resource: turn an OpenAPI document into callable tools, or call one of its endpoints, and it distinguishes the two modes ('action list_tools only reads the document; action call sends the request'). It does not name any sibling tool, so an agent must infer on its own whether this is preferable to the related 'call' tool, which keeps it at a 4.

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?

It gives an explicit use condition: 'Use when the API you need has an OpenAPI document but no MCP server.' That is a clear context. However, it names no alternative to use instead when the API is already exposed as an MCP server, and it gives no guidance on choosing list_tools first before call.

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