Skip to main content
Glama
smallest-inc

Smallest MCP Server

Official
by smallest-inc

create_webhook

Register a new webhook endpoint for Smallest AI to receive call and analytics events. Optionally attach agents to specific events at creation.

Instructions

Register a NEW webhook endpoint (delivery URL). Use this only when the target URL does not already exist as a webhook. To point an agent at an ALREADY-REGISTERED webhook, do NOT create a new one — call get_webhooks to find it, then attach_agent_webhook. events is optional: omit it to register the endpoint only, or pass agent+event pairs to attach in the same call. Never guess or default the event types. If the user hasn't said which of call-start (pre-conversation), call-end (post-conversation), or analytics (analytics-completed) they want, ask them before calling.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
eventsNoOptional agent + event-type pairs to subscribe at creation. Repeat an agent_id with different event types for multiple events. Never guess or default the event types. If the user hasn't said which of call-start (pre-conversation), call-end (post-conversation), or analytics (analytics-completed) they want, ask them before calling.
headersNoCustom headers sent with every delivery (e.g. gateway API keys), as key/value pairs. Max 10; reserved headers like content-type are rejected.
endpointYesThe HTTPS URL that will receive webhook deliveries.
descriptionYesA human-readable label for this webhook.
Behavior4/5

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

Discloses that this creates a new webhook, events are optional and can attach in same call, headers have limits. Lacks mention of error behavior (e.g., duplicate endpoint) but is otherwise transparent. No annotations to contradict.

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?

Four sentences, each earning its place: purpose, usage condition, events detail, caution. No filler, well-structured and front-loaded.

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?

Covers parameters and usage well, but there is no output schema and description does not explain what is returned (e.g., created webhook object). This omission, given complexity and no output schema, makes it slightly incomplete.

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

Parameters4/5

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

Schema coverage is 100%, so baseline is 3. Description adds significant value: explains events' optionality and attachment, headers limits and examples, endpoint format. Extra context raises score.

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?

Explicitly states 'Register a NEW webhook endpoint' with a specific verb and resource. Distinguishes from siblings like get_webhooks and attach_agent_webhook by specifying the condition for use.

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?

Provides clear when-to-use (only for new URLs) and when-not-to (already registered, use get_webhooks then attach_agent_webhook). Also gives explicit guidance on events: never guess/default, ask user if unspecified.

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/smallest-inc/mcp-server'

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