Skip to main content
Glama

Import content into a change request

gitbook_import_content

Import a public web page into a GitBook space asynchronously, with AI enhancement by default. Use a change request to review and merge without affecting the live branch.

Instructions

GitBook's content-write primitive: import a public web page (sourceUrl) into a space — scoped to a change request (and optionally a page), AI-enhanced by default. There is NO direct 'set page body' API; this is the supported write path. The import is asynchronous (returns a run id + status); review in GitBook, then gitbook_merge_change_request to publish.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
orgIdYesOrganization id that owns the space.
spaceIdYesTarget space id.
sourceUrlYesPublic http(s) URL of the page to import as content (no credentials).
changeRequestIdNoTarget change request id (recommended — keeps the import off the live branch).
pageIdNoTarget page id to import into (optional).
enhanceNoAI-enhance the imported content (default true).
Behavior4/5

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

The description complements annotations by disclosing the asynchronous nature (returns run id + status), the default AI enhancement, and the recommendation to use a change request. No annotation contradictions exist; the description adds valuable behavioral context beyond what annotations alone provide.

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 (5 sentences), front-loaded with the primary purpose, and structured logically. Every sentence adds value without redundancy or fluff.

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?

Despite lacking an output schema, the description explains the return value (run id + status), the async behavior, and the post-import workflow. For a write tool with moderate complexity, it covers all essential information an AI agent needs to invoke it correctly.

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?

With 100% schema coverage, baseline is 3. The description adds semantic value by explaining the sourceUrl must be a public URL (already in schema but reinforced), the AI-enhance default (also in schema), and the change request recommendation (not in schema). This provides operational insight.

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 identifies the tool as GitBook's primary content-write primitive for importing a public web page into a space within a change request. It distinguishes itself by noting the absence of a direct 'set page body' API, making its purpose unambiguous.

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?

The description provides explicit usage context: it is the supported write path, recommends scoping via changeRequestId to avoid live branch modification, and outlines the workflow (import, review, then gitbook_merge_change_request to publish). This distinguishes it from sibling tools.

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/HoYongJin/gitbook-mcp'

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