GitBook MCP
gitbook_mcpBrowse GitBook sites and pages, open and merge change requests, and run any GitBook API operation through GitBook's hosted MCP server.
Acciones disponibles (13)
Cada acción es una operación que el agente puede ejecutar contra este conector. Haz clic en una acción para ver sus parámetros.
Create change requestGITBOOK_MCP_CREATE_CHANGE_REQUESTAcciónOpens a change request on a space. Published content is never edited directly: create a change request, edit pages within it, then submit/merge it. Returns the new change request id needed for those follow-ups. Pass a description to tell reviewers what changes and why. Pass siteFindingIds to link up to 25 site findings this change request fixes. Merging does not resolve outbound broken-link findings; the outbound checker confirms those fixes. See get_usage_guide("editing").
GITBOOK_MCP_CREATE_CHANGE_REQUESTAcciónOpens a change request on a space. Published content is never edited directly: create a change request, edit pages within it, then submit/merge it. Returns the new change request id needed for those follow-ups. Pass a description to tell reviewers what changes and why. Pass siteFindingIds to link up to 25 site findings this change request fixes. Merging does not resolve outbound broken-link findings; the outbound checker confirms those fixes. See get_usage_guide("editing").
Parámetros de entrada
spaceIdstringObligatorioID of the space to open the change request against.
subjectstringShort title for the change request.
descriptionstringWhat the change request changes and why, for whoever reviews it. Plain text; separate paragraphs with a blank line.
siteFindingIdsstring[]IDs of the site findings this change request fixes, from listSiteFindings. Outbound broken-link findings are resolved by the outbound checker, not by merging.
Parámetros de salida
Sin parámetros.
Describe operationGITBOOK_MCP_DESCRIBE_OPERATIONAcciónDescribes one GitBook API operation found via search: its path/query parameters and request-body JSON Schema, so you can build params for invoke_operation. Read-only.
GITBOOK_MCP_DESCRIBE_OPERATIONAcciónDescribes one GitBook API operation found via search: its path/query parameters and request-body JSON Schema, so you can build params for invoke_operation. Read-only.
Parámetros de entrada
operationIdstringObligatorioOperation id to describe (discover ids with search).
Parámetros de salida
Sin parámetros.
Get pageGITBOOK_MCP_GET_PAGEAcciónReturns a page from the space's main content as markdown plus its id, title and path. Look the page up by pageId or by path. For editing a change request, use get_usage_guide with topic editing for reading its content and using the optional concurrency guard. Links to other pages and files are stable references such as `/pages/<pageId>` or `/files/<fileId>`; keep them as they are when writing the content back. Find a space with get_site_structure; to list that space's pages, use the operation surface — invoke_operation getSpaceById to read its `revision`, then getRevisionById to get the revision's pages.
GITBOOK_MCP_GET_PAGEAcciónReturns a page from the space's main content as markdown plus its id, title and path. Look the page up by pageId or by path. For editing a change request, use get_usage_guide with topic editing for reading its content and using the optional concurrency guard. Links to other pages and files are stable references such as `/pages/<pageId>` or `/files/<fileId>`; keep them as they are when writing the content back. Find a space with get_site_structure; to list that space's pages, use the operation surface — invoke_operation getSpaceById to read its `revision`, then getRevisionById to get the revision's pages.
Parámetros de entrada
pathstringPath of the page to read, relative to the space, e.g. "guides/install" (alternative to pageId).
pageIdstringID of the page to read.
spaceIdstringObligatorioID of the space the page belongs to.
Parámetros de salida
Sin parámetros.
Get schema definitionGITBOOK_MCP_GET_SCHEMA_DEFINITIONAcciónReturns the JSON Schema of a type that a tool's input schema leaves out, such as a document block, along with the types it contains. Call it when a schema says to, before building that part of the input. Any type still left out is named, so you can expand it in turn. For worked examples of document content, see get_usage_guide("editing").
GITBOOK_MCP_GET_SCHEMA_DEFINITIONAcciónReturns the JSON Schema of a type that a tool's input schema leaves out, such as a document block, along with the types it contains. Call it when a schema says to, before building that part of the input. Any type still left out is named, so you can expand it in turn. For worked examples of document content, see get_usage_guide("editing").
Parámetros de entrada
namestringObligatorioName of the type to expand, exactly as a schema names it, e.g. "DocumentBlockTable".
Parámetros de salida
Sin parámetros.
Get site structureGITBOOK_MCP_GET_SITE_STRUCTUREAcciónReturns a site's navigation structure: its sections, groups, external links (with destination URLs), and published spaces, with the paths and ids needed to read content. Pass the organization id (the same one used with list_sites) and the site id. Use it to map a site before reading or editing. Find a site first with list_sites; read page content with get_page.
GITBOOK_MCP_GET_SITE_STRUCTUREAcciónReturns a site's navigation structure: its sections, groups, external links (with destination URLs), and published spaces, with the paths and ids needed to read content. Pass the organization id (the same one used with list_sites) and the site id. Use it to map a site before reading or editing. Find a site first with list_sites; read page content with get_page.
Parámetros de entrada
siteIdstringObligatorioID of the site to describe.
organizationIdstringObligatorioID of the organization that owns the site.
Parámetros de salida
Sin parámetros.
Get subscription informationGITBOOK_MCP_GET_SUBSCRIPTION_INFORMATIONAcciónReturns a GitBook organization's subscription: whether it is on a trial, the free plan or a paid plan, when an active trial ends and how many days are left, and where to upgrade. Use it to answer questions such as "What plan am I on?", "How long is left on my trial?" or "How do I upgrade?", and before relying on features that need a paid site plan (sections, advanced customization, custom domains). Give the user upgradeUrl only when canManageBilling is true; otherwise, tell them an administrator of the organization has to upgrade, and share pricingUrl to compare plans.
GITBOOK_MCP_GET_SUBSCRIPTION_INFORMATIONAcciónReturns a GitBook organization's subscription: whether it is on a trial, the free plan or a paid plan, when an active trial ends and how many days are left, and where to upgrade. Use it to answer questions such as "What plan am I on?", "How long is left on my trial?" or "How do I upgrade?", and before relying on features that need a paid site plan (sections, advanced customization, custom domains). Give the user upgradeUrl only when canManageBilling is true; otherwise, tell them an administrator of the organization has to upgrade, and share pricingUrl to compare plans.
Parámetros de entrada
organizationIdstringObligatorioID of the organization whose subscription to read.
Parámetros de salida
planobjectObligatorioThe plan in effect, which is the trial's plan while trialing.
trialobjectThe current or last trial. Absent when the organization never had one.
objectstringObligatoriostatusstringObligatorioenumWhether the organization is on a trial, the free plan, or a paid plan.
trialfreepaidpricingUrlstringObligatorioPublic page comparing the GitBook plans.
upgradeUrlstringWhere to upgrade in the application. Only set when canManageBilling is true.
canManageBillingbooleanObligatorioWhether the user is an administrator of the organization, and so can upgrade. Otherwise, they have to ask an administrator to upgrade.
Get usage guideGITBOOK_MCP_GET_USAGE_GUIDEAcciónReturns procedural guidance for working with GitBook through this server (content model and step-by-step recipes). Call it when unsure how to orient, read, or edit content. Omit topic to list available topics.
GITBOOK_MCP_GET_USAGE_GUIDEAcciónReturns procedural guidance for working with GitBook through this server (content model and step-by-step recipes). Call it when unsure how to orient, read, or edit content. Omit topic to list available topics.
Parámetros de entrada
topicstringGuide topic to fetch. One of: content-model, orientation, membership, analytics, onboarding, editing, feedback, billing, site-structure, content-blocks. Omit to list topics.
Parámetros de salida
Sin parámetros.
Invoke operationGITBOOK_MCP_INVOKE_OPERATIONAcciónRuns one GitBook API operation discovered via search, for capabilities not covered by a curated tool. Pass operationId and params (path/query/body). Returns the operation's JSON response, or a one-line status when the operation answers with no content. The surface includes operations that are visible to the public or cannot be undone (for example publishing a site or merging a change request), so confirm before invoking one.
GITBOOK_MCP_INVOKE_OPERATIONAcciónRuns one GitBook API operation discovered via search, for capabilities not covered by a curated tool. Pass operationId and params (path/query/body). Returns the operation's JSON response, or a one-line status when the operation answers with no content. The surface includes operations that are visible to the public or cannot be undone (for example publishing a site or merging a change request), so confirm before invoking one.
Parámetros de entrada
paramsobjectoperationIdstringObligatorioOperation id to run (discover ids with search).
Parámetros de salida
Sin parámetros.
List sitesGITBOOK_MCP_LIST_SITESAcciónLists the published sites in a GitBook organization, the usual entry point for orientation. Returns each site's title, visibility, hostname and id. To reach site content, use this first to find a site, then get_site_structure to see the spaces (where content lives) within it. Not for listing a site's content directly (use get_site_structure).
GITBOOK_MCP_LIST_SITESAcciónLists the published sites in a GitBook organization, the usual entry point for orientation. Returns each site's title, visibility, hostname and id. To reach site content, use this first to find a site, then get_site_structure to see the spaces (where content lives) within it. Not for listing a site's content directly (use get_site_structure).
Parámetros de entrada
pagestringPagination cursor from a previous call.
limitintegerMax number of sites to fetch (default 50).
organizationIdstringObligatorioID of the organization whose sites to list.
Parámetros de salida
Sin parámetros.
List site topicsGITBOOK_MCP_LIST_SITE_TOPICSAcciónLists the topics and subtopics a site's content and visitor questions are organised under, ranked by how many Ask AI questions they drew over the range, with each one's answered rate, open findings and id. Use it to find which topics visitors ask about most or struggle with, to resolve a topic by name, or to discover a topic id before filtering Ask AI questions, answers or stats by topic (the `topic` parameter of getSiteQuestionStats, listSiteQuestions and listSiteQuestionAnswers). Use getSiteTopicById for a single topic's summary.
GITBOOK_MCP_LIST_SITE_TOPICSAcciónLists the topics and subtopics a site's content and visitor questions are organised under, ranked by how many Ask AI questions they drew over the range, with each one's answered rate, open findings and id. Use it to find which topics visitors ask about most or struggle with, to resolve a topic by name, or to discover a topic id before filtering Ask AI questions, answers or stats by topic (the `topic` parameter of getSiteQuestionStats, listSiteQuestions and listSiteQuestionAnswers). Use getSiteTopicById for a single topic's summary.
Parámetros de entrada
tostringCount questions asked at or before this ISO timestamp.
fromstringCount questions asked at or after this ISO timestamp. Defaults to all time.
siteIdstringObligatorioID of the site whose topics to list.
answeredstring[]Count only questions answered this way.
relevancestring[]Count only questions of this relevance, e.g. ["relevant"] to leave out spam.
channelTypestring[]Count only questions asked through these channels.
visitorTypestring[]Count only questions from these visitor types: humans, AI agents, or callers of unknown kind.
organizationIdstringObligatorioID of the organization that owns the site.
Parámetros de salida
Sin parámetros.
Report tool feedbackGITBOOK_MCP_REPORT_TOOL_FEEDBACKAcciónSends a feedback report to GitBook about this MCP server's tools or operations: a confusing tool or parameter, a failed or unusable call, or a missing capability. Use it only when the user asks to send feedback to GitBook. Describe the tool or operation itself; do not include the content it returned or any personal or workspace data.
GITBOOK_MCP_REPORT_TOOL_FEEDBACKAcciónSends a feedback report to GitBook about this MCP server's tools or operations: a confusing tool or parameter, a failed or unusable call, or a missing capability. Use it only when the user asks to send feedback to GitBook. Describe the tool or operation itself; do not include the content it returned or any personal or workspace data.
Parámetros de entrada
goalstringWhat you were trying to accomplish, without any PII.
modelstringThe model you are running as, if you know it.
detailstringWhat happened, step by step: what you were trying, what you called in what order, what you expected, and what you got instead. Enough for someone to follow without guessing. Never include parameter values.
targetstringThe operation the tool was pointed at, when toolName is invoke_operation or describe_operation, e.g. "updateChangeRequestContent". Leave out for search: a search that found nothing has no operation to name.
summarystringObligatorioOne short sentence naming the problem, in your own words.
categorystringObligatorioenumWhat kind of problem this was. usability: hard to understand or use correctly, such as a confusing name or unclear parameters. reliability: behaved inconsistently, failed unexpectedly, or returned unusable results. documentation: the tool or operation's own description, schema or guidance was missing, unclear or misleading (not about published documentation pages). efficiency: took more calls, steps or tokens than it should have. interoperability: did not compose well with other tools, operations or formats. could-not-accomplish: nothing available could do what was needed.
usabilityreliabilitydocumentationefficiencyinteroperabilitycould-not-accomplishonDemandbooleanTrue when the user explicitly asked you to report this.
severitystringenumlow for minor friction, high for a task you could not complete.
lowmediumhightoolNamestringName of the tool or entry point the problem was with, e.g. "invoke_operation". Omit when nothing available could do what you needed.
callCountintegerHow many times you tried.
workaroundstringHow you worked around it, if you managed to.
successCountintegerHow many of those worked.
correlationIdstringThe correlationId you were given when the call failed. Copy it exactly; it is how the report is matched to the logs of that call.
Parámetros de salida
Sin parámetros.
SearchGITBOOK_MCP_SEARCHAcciónSearches the GitBook API operations this server can run, returning matches (id, method, path, summary) to run with invoke_operation. Use describe_operation for an operation's inputs. Use it to find operations beyond the curated tools. Read-only.
GITBOOK_MCP_SEARCHAcciónSearches the GitBook API operations this server can run, returning matches (id, method, path, summary) to run with invoke_operation. Use describe_operation for an operation's inputs. Use it to find operations beyond the curated tools. Read-only.
Parámetros de entrada
querystringObligatorioKeywords matched against operation ids, summaries, paths and descriptions.
Parámetros de salida
Sin parámetros.
Submit or merge change requestGITBOOK_MCP_SUBMIT_OR_MERGE_CHANGE_REQUESTAcciónMerges a change request, publishing its edits to the space. This is destructive and irreversible. Use it to finish the editing flow after create_change_request and editing pages via updateChangeRequestContent. Reports conflicts instead of merging when the change request is out of date.
GITBOOK_MCP_SUBMIT_OR_MERGE_CHANGE_REQUESTAcciónMerges a change request, publishing its edits to the space. This is destructive and irreversible. Use it to finish the editing flow after create_change_request and editing pages via updateChangeRequestContent. Reports conflicts instead of merging when the change request is out of date.
Parámetros de entrada
spaceIdstringObligatorioID of the space the change request belongs to.
changeRequestIdstringObligatorioID of the change request to merge.
Parámetros de salida
Sin parámetros.