Skip to main content
Glama
alvii147

localhostmcp

by alvii147

request

Send HTTP calls to a local development server. Specify port, path, method, optional body, and headers to interact with localhost APIs.

Instructions

Sends an HTTP request to localhost at given port, with given HTTP method, request body, and headers.

Parameters

port : int Port to send request to (e.g. port=8000 hits http://localhost:8000).

path : str Path to send request to (e.g. path=/foo/bar hits http://localhost:{port}/foo/bar).

method : str, HTTP method for request (e.g. GET, POST).

data : str, optional HTTP request body. Note: content type header is not set automatically, and must be set through "headers".

headers : dict, optional HTTP headers (e.g. {"Content-Type": "application/json"}).

Returns

int Response status code.

str Response data.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
portYes
pathYes
methodYes
dataNo
headersNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior3/5

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

No annotations provided, so the description must fully disclose behavior. It notes that the content type header is not set automatically, which is a useful behavioral detail. However, it omits other traits like potential side effects or security considerations, making it adequate but not thorough.

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?

The description is well-structured with clear sections (Parameters, Returns) and uses concise language. Every sentence adds value, and it avoids redundancy.

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?

The description covers the main functionality and return values. It is missing details on error handling, timeouts, or security, but for a straightforward tool it is largely complete. The presence of an output schema reduces the need for additional return value explanation.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Despite 0% schema coverage, the description provides comprehensive details for each parameter: port with example, path with example, method with common values, data with note about headers, and headers with example. This adds significant meaning beyond the bare schema.

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 clearly states the tool sends an HTTP request to localhost with specific parameters. It uses a specific verb ('sends') and resource ('HTTP request to localhost'), making the purpose unambiguous.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

No guidance on when to use this tool or alternatives. Even though no siblings exist, the description does not explain appropriate contexts, such as when to set headers or choose methods, leaving the agent without usage boundaries.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/alvii147/localhostmcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server