Skip to main content
Glama

POST /api/cache (upstream GET)

api_post_cache_get
Destructive

Fetch a URL using upstream GET and cache its text response. The upstream method cannot be changed. Uses the OneSimpleAPI API (https://onesimpleapi.com/docs), with the same permissions, credits and storage. Supply API parameters in query or body. This tool always uses POST; do not supply method. Outputs preserve HTTP status, headers and JSON/text/base64 body; redirects are returned without following them.

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": "api_post_cache_get"
  }
}

Input Schema

NameRequiredDescriptionDefault
bodyNoAPI request body. Nested objects, arrays, HTML, base64 data and all API options retain their original meaning.
pathNo
filesNoMultipart uploads keyed by API field name (for example pdf). Supply file_name, base64 bytes and optional mime_type. Uploads use the existing API file validators.
queryNoURL query parameters. Sensitive API options must be in body as documented by the API.
headersNoAPI request headers such as Idempotency-Key, Range and If-None-Match. Authentication and transport headers are managed by the connection.
content_typeNoDefaults to application/json, or multipart/form-data when files are supplied.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.7/5.0
Behavior4/5

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

Beyond the annotations (destructiveHint=true, openWorldHint=true, idempotentHint=false), the description explains the caching side effect, the force-fresh-fetch option, that redirects are returned unfollowed, and that status/headers/body are preserved. It does not explain why the tool is flagged destructive (cache writes/overwrites) or the credit cost implications, which would be valuable for a write-to-cache tool.

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?

The core behavior and the fixed-method constraint are front-loaded in the first two sentences. The OneSimpleAPI documentation link and the 'same permissions, credits and storage' sentence are somewhat boilerplate and dilute an otherwise tight definition.

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 six-parameter tool with nested objects and no output schema, the description covers the return shape (status, headers, JSON/text/base64 body, unfollowed redirects) and the caching model well. The main gap is the unexplained destructive classification and the credit accounting, which an agent calling a caching fetch endpoint would benefit from knowing.

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 83%, so the schema already documents url, body, force, output, headers, and cache_duration. The description only adds placement guidance (query vs. body) and the fixed-method rule, which the schema's http_method const already encodes, so it adds little new parameter meaning.

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 opens with a specific verb and resource: fetch a URL via upstream GET and cache the text response, plus the hard constraint that the upstream method cannot be changed. That clearly separates it from the sibling api_post_cache_post, though the sibling is never named explicitly, so the differentiation relies on the reader comparing names.

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?

It gives practical invocation guidance ('supply API parameters in query or body', 'do not supply method') and notes the shared permissions/credits/storage model. It does not say when to choose this over api_post_cache_post or when caching versus a forced fresh fetch is appropriate, so usage context is implied rather than spelled out.

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