Skip to main content
Glama
yeison-liscano

Simple HTTP MCP Server

Tool That Access Request

tool_that_access_request
Idempotent

Retrieve user request data by providing a username through the Simple HTTP MCP Server, enabling remote execution of Python functions with type safety and async support.

Instructions

Access the request.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
usernameYesThe username of the user

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
messageYesThe message to the user

Implementation Reference

  • The handler function implementing the core logic of 'tool_that_access_request'. It accesses the request headers, updates the context with the called tool, and returns a personalized message based on the input username and a test header.
    async def tool_that_access_request(
        args: Arguments[ToolThatAccessRequest],
    ) -> ToolThatAccessRequestOutput:
        """Access the request."""
        test_header = args.request.headers.get("X-TEST-HEADER")
        args.get_state_key("context", Context).add_called_tool("tool_that_access_request")
        return ToolThatAccessRequestOutput(
            message=f"Hello {args.inputs.username} you are authenticated with {test_header}",
        )
  • Pydantic input schema for the 'tool_that_access_request' tool, defining the 'username' field.
    class ToolThatAccessRequest(BaseModel):
        username: str = Field(description="The username of the user")
  • Pydantic output schema for the 'tool_that_access_request' tool, defining the 'message' field.
    class ToolThatAccessRequestOutput(BaseModel):
        message: str = Field(description="The message to the user")
  • Registration of the 'tool_that_access_request' tool in the TOOLS tuple, specifying the function, input schema, and output schema.
    Tool(
        func=tool_that_access_request,
        inputs=ToolThatAccessRequest,
        output=ToolThatAccessRequestOutput,
    ),
Behavior3/5

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

Annotations provide substantial behavioral information (readOnlyHint=false, openWorldHint=true, idempotentHint=true, destructiveHint=false), so the description's burden is lower. The description adds no behavioral context beyond what annotations already declare - it doesn't mention what type of access occurs, whether authentication is needed, rate limits, or what happens when accessing requests. However, it doesn't contradict annotations either, so it meets the minimum baseline for descriptions with good annotation coverage.

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?

While technically concise with only three words, this represents under-specification rather than effective brevity. The description fails to provide necessary information about the tool's purpose and usage. Every sentence should earn its place, but this single sentence doesn't provide enough value to justify its existence as a helpful description.

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

Completeness2/5

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

Given that this tool has one required parameter, annotations covering key behavioral aspects, and an output schema exists, the description is incomplete. While the output schema means the description doesn't need to explain return values, the description fails to explain what 'access the request' means in practical terms, what kind of requests are involved, or provide any operational context. For a tool with parameter requirements and behavioral implications, this description leaves too many questions unanswered.

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 the username parameter fully documented in the schema. The description adds no parameter information whatsoever - it doesn't explain why username is required, what relationship it has to 'accessing the request', or provide any context beyond what's already in the structured schema. This meets the baseline score of 3 when schema coverage is high and description adds no parameter semantics.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose2/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description 'Access the request' is essentially a tautology that restates the tool name 'tool_that_access_request' without adding meaningful clarification. It doesn't specify what type of request is being accessed, what 'access' entails (e.g., retrieve, modify, approve), or what resource is involved. While it distinguishes from unrelated siblings like get_weather, it fails to provide specific verb+resource information needed for clear purpose understanding.

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

Usage Guidelines1/5

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

The description provides absolutely no guidance on when to use this tool versus alternatives. There's no mention of context, prerequisites, or comparison with sibling tools like get_called_tools, get_time, or get_weather. The agent receives no information about appropriate use cases or when this tool would be preferred over other options.

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

Related 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/yeison-liscano/http_mcp'

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