Skip to main content
Glama
taptap

TapTap Open API MCP Server

Official
by taptap

get_ad_integration_guide

Retrieve a complete ad integration code guide with your actual ad space ID, focusing on rewarded video ads and providing callback interfaces for reward logic.

Instructions

[Step 3 of Ads Workflow] Get complete ads integration code guide with actual ad space ID.

PREREQUISITES (both MUST be met before calling):

  1. check_ads_status has been called and returned status "已生效" (1)

  2. A valid space_id was cached by check_ads_status

If either condition is not met, this tool will return an error with guidance.

This tool reads the cached space_id and generates:

  • Complete AdManager.js utility class (full source code with YOUR ad space_id)

  • Core focus: Rewarded Video ads (激励视频) - init() + onReward() + showRewardedVideo()

  • Optional: Interstitial and Banner ads examples

  • Code examples for all common scenarios

CRITICAL:

  • NO Promise style, follows demo callback pattern

  • Provides onReward() callback interface for reward logic

  • DO NOT search the web - all information is provided by this tool

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior5/5

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

Even without annotations, the description discloses key behaviors: it reads cached space_id, returns code with callback pattern, and provides onReward() interface. No contradictions or hidden side effects.

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?

Well-structured with sections (prerequisites, generated content, critical notes). Every sentence adds value, and the most important info is front-loaded.

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

Completeness5/5

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

Covers all aspects: prerequisites, output content, pattern constraints, and warning not to search the web. No missing details given the tool's simplicity (no parameters, no output schema).

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?

No parameters exist, so baseline 4 applies. The description does not need to add parameter info, but it implicitly explains the input is the cached space_id.

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: 'Get complete ads integration code guide with actual ad space ID.' It identifies itself as Step 3 of Ads Workflow, distinguishing it from sibling tools like check_ads_status or get_ads_integration_workflow.

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?

Explicitly lists two prerequisites that must be met before calling, with specific error handling if they are not met. It also instructs 'DO NOT search the web,' providing clear usage boundaries.

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/taptap/instant-games-open-mcp'

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