Skip to main content
Glama
adbutler

AdButler MCP Server

Official
by adbutler

serve_ad

Request ad delivery for a zone to receive the ad(s) that would be served, enabling verification of ad setup.

Instructions

Request ad delivery for a zone. Returns the ad(s) that would be served, useful for verifying ad setup. Uses POST /adserve.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
IDYesYour AdButler account ID
ipNoIPv4 address for geographic targeting (required for server-side requests)
kwNoKeywords for keyword targeting
rfNoPass 1 to include is_redirectable field in response
shNoScreen height for platform targeting
swNoScreen width for platform targeting
uaNoUser agent string for platform targeting
pidNoPage ID for unique delivery/roadblocks (random number, same for all zones on page)
sprNoScreen pixel ratio for platform targeting
sizeNoExpected ad size (e.g. "300x250")
typeYesResponse type: "json" for most eligible ad, "jsonr" for all eligible ads ranked
placeNoPlace counter for unique delivery (0, 1, 2, etc.)
setIDYesZone ID to serve an ad from
referrerNoPage URL for URL targeting (required for server-side requests)
_abdk_jsonNoData key key-value pairs for data key targeting
defer_signingNoDefer beacon signing hash generation
Behavior3/5

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

No annotations are provided, so the description carries the full burden. It discloses the HTTP method (POST /adserve) and that it returns ads 'that would be served', suggesting it's a simulation. However, it does not mention potential side effects (e.g., whether impressions are logged), authentication requirements, or behavior when no ad is available.

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 concise and front-loaded: 'Request ad delivery for a zone' immediately states the action. It includes the return value, use case, and HTTP method in three short sentences with no redundant information.

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?

The tool has 16 parameters and no output schema, and the description stays minimal. It explains the core purpose but does not describe the response format or highlight critical parameters like 'type' (json vs jsonr) or the requirements for 'ip' and 'referrer'. This leaves some gaps for an agent trying to invoke it correctly, though the schema provides parameter-level completeness.

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?

The input schema has 100% description coverage for all 16 parameters, so the description does not need to repeat parameter details. The text adds no additional parameter semantics beyond the schema, which is acceptable at the baseline level.

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's purpose: 'Request ad delivery for a zone' and 'Returns the ad(s) that would be served'. This uses a specific verb and resource, distinguishing it from sibling tools like get_ad or vast42_get_ad. The added phrase 'useful for verifying ad setup' clarifies its intended use case.

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

Usage Guidelines4/5

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

The description provides a clear use case: 'useful for verifying ad setup'. It implies this tool is for testing/diagnosing rather than actual ad serving. While it doesn't explicitly name alternatives or state when not to use it, the context is sufficient given the large sibling list.

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

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