Skip to main content
Glama

Generate Payram webhook HTTP handler

generate_webhook_handler
Read-onlyIdempotent

Generates backend code to handle Payram webhook HTTP requests.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
frameworkYesWeb framework for the webhook handler code

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
metaYes
notesNo
titleYes
snippetYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedOutput schema / properties / meta / properties / language / enum
      Previous value: -[
      -  "typescript",
      -  "javascript",
      -  "python",
      -  "go",
      -  "php",
      -  "java"
      -]New value: +[
      +  "typescript",
      +  "javascript",
      +  "python",
      +  "go",
      +  "php",
      +  "java",
      +  "bash"
      +]
  2. Changed2 schema fields changed
    • changedInput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
    • changedOutput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
  3. First observed

TDQS

C2.9/5.0
Behavior2/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, destructiveHint=false and openWorldHint=false, so safety and reproducibility are covered structurally. The description adds nothing beyond the title — no note on what is produced, whether files are written, or framework-specific behavior. With annotations carrying the entire behavioral load, the description contributes no extra context.

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?

One short, front-loaded sentence with no filler. It is efficiently written, though it verges on under-specification rather than tight completeness.

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

Completeness3/5

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

An output schema exists so return values need not be explained, and the single parameter is fully documented. Still, for a code-generation tool whose near-twin siblings include generate_webhook_event_router and the many snippet_* tools, the description omits the disambiguation an agent needs to route correctly.

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% and the single framework parameter is an enum with its own description, so the schema does the heavy lifting. The description adds no framework-specific detail (e.g. what Express vs FastAPI output looks like), so baseline 3 is appropriate.

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?

States a specific verb and resource (generates backend code for Payram webhook HTTP requests), and the sibling list confirms it is a code-generation tool distinct from docs/explain tools. It does not, however, distinguish itself from the close sibling generate_webhook_event_router, which an agent could easily confuse it with.

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?

There is no when-to-use guidance, no prerequisites, and no named alternative. The agent must infer that this is for producing a handler stub versus a router (generate_webhook_event_router) or a mock event (generate_mock_webhook_event) purely from the names.

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