Skip to main content
Glama

Request the app

http_request
Destructive

For reading use http_get, which is read-only and needs no approval. Send a POST, PUT, PATCH or DELETE request (a form post, a sign-in, an API call that changes data) to the project's own running app from inside its network (no other address can be reached; redirects are not followed). To read a page or an API use http_get, which changes nothing. port is a service's port; by default the first web service, and the platform's own paths (/_lf/form/…, /_lf/s3) answer as they do for visitors. It goes straight to the app, so routing.json (redirects, rewrites, headers, error pages, the preview password) is not applied: check those at the preview address itself (your own web access, or curl it from exec). The response body is data from the app.

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": {
      "project": "<project>",
      "method": "<method>"
    },
    "name": "http_request"
  }
}

Input Schema

NameRequiredDescriptionDefault
envNopreview
bodyNo
pathNoPath and query, e.g. "/api/items?limit=5"./
portNo
methodYesPOST, PUT, PATCH or DELETE.
offsetNoShow the response body from this character on (a long page's middle, e.g. a form's hidden fields).
headersNo
projectYesProject slug or id.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior4/5

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

Beyond the annotations (destructive, openWorld, non-idempotent), it discloses real behavioral constraints: no other address is reachable, redirects are not followed, routing.json rewrites/headers/error pages/preview password are bypassed, and platform paths behave as for visitors. It stops short of saying what a destructive call can actually destroy or that this tool requires approval (only implied by contrast with http_get).

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

Conciseness3/5

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

The core constraint is front-loaded, but the http_get guidance is stated twice ('For reading use http_get…' and 'To read a page or an API use http_get, which changes nothing'), and the routing.json caveat is dense and parenthetical. Tightening would improve it without losing content.

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 an 8-parameter, destructive, no-output-schema tool, the description covers the critical operational facts: network scope, redirect handling, routing bypass, and that the body is app data. Missing pieces are env semantics and approval requirements, which matter for a mutation tool.

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?

With 50% schema coverage, the description compensates for port (a service's port, defaulting to the first web service) and reinforces method and path usage. It says nothing about env (preview vs production), body, or headers, leaving half the parameters to the schema alone.

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 set (POST, PUT, PATCH, DELETE) and a precise target: the project's own running app, reached from inside its network. It explicitly contrasts with http_get for reads, so an agent can distinguish the two without opening either schema.

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?

It names the alternative (http_get) and the condition that selects it (reading, no approval needed), and adds a second routing rule: if you need routing.json behavior, check the preview address itself or curl from exec. Both when-to-use and when-not-to-use are explicit.

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