Skip to main content
Glama

pino_http_middleware

Generate pino-http middleware that propagates request context and applies custom serializers, enabling structured logging tailored to your framework.

Instructions

Create pino-http middleware with request context propagation and custom serializers

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
api_keyNoAPI key for authentication
frameworkNofastify
auto_loggingNo
custom_propsNo
Behavior2/5

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

With no annotations provided, the description carries the full burden of behavioral disclosure, but it only names the artifact produced. It does not mention side effects such as file creation or modification, framework-dependent output differences, the api_key authentication requirement for the tool itself, or whether the operation is safe or mutating.

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 description is a single front-loaded sentence with no filler; the action and key features appear immediately. It is efficient, though arguably over-compressed given that it omits parameter and behavioral details that an agent would need.

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?

For a code-generation tool with four parameters, no annotations, and no output schema, a one-line description is incomplete. It omits authentication expectations, what files the middleware is written to, how the framework parameter changes the result, and what the generated middleware does at runtime — leaving too much for an agent to guess.

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

Parameters2/5

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

Schema description coverage is only 25% (only api_key is documented), so the description must compensate for the other three parameters. It loosely maps to custom_props via 'request context propagation' but says nothing about auto_logging or framework, and it introduces 'custom serializers' despite no serializer parameter existing in the schema — a mismatch that could mislead an agent mapping the description to inputs.

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 specific verb ('Create') and resource ('pino-http middleware'), and adds two defining features — 'request context propagation' and 'custom serializers' — so an agent can tell what artifact this produces. It does not explicitly differentiate from the sibling tools pino_logger_config and pino_transport_pipeline, so the distinction rests on the term 'middleware' rather than on an explicit contrast.

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 is given on when to use this tool versus siblings like pino_logger_config, pino_transport_pipeline, or the many other middleware generators in the sibling list. There are no stated conditions, exclusions, or prerequisites; an agent must infer usage entirely from the tool's name.

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/barnburner121/claude-plugin-marketplace'

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