---
title: "MCP Tools for Documentation: Document Profiles, Composition, and Recommendations"
description: "Every Nodinite MCP Endpoint tool in the Documentation group: build profile-based Articles from Document Profiles, gather the facts to document a Resource or C4 node, check Documentation Health, and get Snippet and Template recommendations."
---

# :fa-file-lines: MCP Tools for Documentation

The Documentation group of the [MCP Endpoint][] helps an AI assistant write documentation the way your team has agreed to write it. It reads the [Document Profiles][] that define an [Article][Articles]'s sections, collects everything known about a [Resource][Resources] or a C4 node, recommends the [Snippets][] and [Templates][] that fit, and builds profile-based Articles part by part. The group is selected by default in the [AI Assistant][].

* ✅ 15 tools: 8 read, 6 write, 1 delete  
* ✅ Facts, relations, and existing Articles for a Resource or C4 node in one call  
* ✅ Change impact before you edit a shared Snippet, Template, or Document Profile  

![The AI Assistant asked which Articles are already linked to the Resource Contoso: Orders awaiting confirmation and which Template to use, answering with the linked Article Contoso: orders waiting for their ERP confirmation, the recommended Contoso Runbook Template, and a two-sentence summary, animated walkthrough (7.12)][1]  
*Animated walkthrough: before documenting a [Resource][Resources], the [AI Assistant][] finds the Article already linked to it and recommends a Template, with the Documentation tools.*  

1. Open the [AI Assistant][].
2. Ask: *I want to document the Resource Contoso: Orders awaiting confirmation. Which Articles are already linked to it, and which Template do you recommend? Summarize the linked Article in two sentences.*
3. The model collects the Resource's facts and its linked Articles with `get_documentation_context` and `get_resource_by_name`, and ranks the Templates with `recommend_templates`.
4. The answer names the linked Article, the recommended Template, and a short summary. The chat shows only the answer, not the tools the model called.

The [MCP Tool Reference][] explains the OAuth scopes, the paging rules, and the other groups. To see the group at work, follow [Migrate Azure DevOps Wiki Pages to Profile-Based Articles with AI][Migrate Azure DevOps Wiki].

## :fa-key: Understanding the Scopes in This Group

The read tools need `mcp:repository.read`. The write tools need **both** `mcp:repository.read` and `mcp:repository.write`, unlike the Article, Snippet, and Template writes in [Repository Tools][], which need only `mcp:repository.write`. `delete_document_profile` needs `mcp:repository.delete`, like the Article, Snippet, and Template deletes; `restore_document` in [Repository Tools][] brings a deleted Document Profile back.

## :fa-list: Tools (15) {#fa-list-tools-14}

| Tool | Kind | What it does |
| --- | --- | --- |
| `get_article_composition` | Read | The structure of a [profile-based Article][Writing a Profile-Based Article]: its profile, main body, sections, and [dangling parts][Dangling Content Parts] |
| `get_change_impact` | Read | Every document that depends on a [Snippet][Snippets], [Template][Templates], [Document Profile][Document Profiles], or [Article][Articles] |
| `get_document_profile` | Read | One [Document Profile][Document Profiles] by slug, with its ordered parts |
| `get_documentation_context` | Read | Everything needed to document a [Resource][Resources] or a [C4][C4 Diagrams] node: facts, relations, and the [Articles][] already linked to it, by title and slug (not their text) |
| `get_documentation_health` | Read | The current Documentation Health findings over all live [documents][Articles] |
| `list_document_profiles` | Read | Live [Document Profiles][] (id, title, slug), optionally filtered by a `search` text on title or slug; no paging |
| `recommend_snippets` | Read | Ranks the [Snippets][] that fit a [Resource][Resources], [C4 diagram][C4 Diagrams] or node, Article, or free text |
| `recommend_templates` | Read | Ranks the [Templates][] that fit a [Resource][Resources], [C4 diagram][C4 Diagrams] or node, Article, or free text |
| `create_article_from_profile` | Write | Creates an [Article][Articles] composed from a [Document Profile][Document Profiles] |
| `create_document_profile` | Write | Creates a [Document Profile][Document Profiles] |
| `set_article_document_profile` | Write | Assigns, changes, or removes (`profileSlug` null) an [Article][Articles]'s [Document Profile][Document Profiles] |
| `set_document_profile_parts` | Write | Replaces the whole ordered part list of a [Document Profile][Document Profiles] |
| `update_article_content_parts` | Write | Writes the [main body][Main Body] and content parts of a [profile-based Article][Writing a Profile-Based Article], and resolves [dangling parts][Dangling Content Parts] |
| `update_document_profile` | Write | Renames or retags a [Document Profile][Document Profiles] by slug (`newSlug` renames it) |
| `delete_document_profile` | Delete | Soft-deletes a [Document Profile][Document Profiles] with its part definitions; [Articles][] composed from it keep their content |

`set_article_document_profile`, `set_document_profile_parts`, and `update_article_content_parts` overwrite what is there, so they are flagged as destructive, like `delete_document_profile`; an MCP client such as VS Code may ask you to confirm before it runs them.

`recommend_snippets` and `recommend_templates` take an optional `take` from 1 to 25. Outside that range they answer *take must be between 1 and 25.* instead of adjusting the value.

## :fa-comment-dots: Prompts

The server also offers two MCP prompts, which are not tools: ready-made instructions that a client can start, and that bring the tools they need with them.

| Prompt | Use it to |
| --- | --- |
| `document-resource` | Document a monitored [Resource][Resources] |
| `document-c4-node` | Document a node of a [C4 diagram][C4 Diagrams] |

In the AI Assistant, a prompt adds the tools it declares to your selection before the limit of 128 tools is checked.

## :fa-hand-point-right: Next Steps

* :fa-book: [MCP Tool Reference][] - Scopes, paging rules, and the other groups  
* :fa-wand-magic-sparkles: [Migrate Azure DevOps Wiki Pages to Profile-Based Articles with AI][Migrate Azure DevOps Wiki]  

## :fa-link-horizontal: Related Topics

* :fa-sitemap: [Repository Tools][]  
* :fa-diagram-project: [C4 Diagram Tools][]  
* :fa-layer-group: [Document Profiles][]  
* :fa-robot: [AI Assistant][]  

[1]:{ndm}/Documentation%20Pictures/IM/AI/MCP_DocumentationTools_InUse.gif

[AI Assistant]:{ndr}/AI/AI%20Assistant.md
[Articles]:{ndr}/Repository%20Model/Knowledge%20base%20Articles/Overview.md
[C4 Diagram Tools]:{ndr}/AI/MCP%20Tool%20Reference/C4%20Diagram%20Tools.md
[C4 Diagrams]:{ndr}/Repository%20Model/C4%20Diagrams/Overview.md
[Dangling Content Parts]:{ndr}/Repository%20Model/Knowledge%20base%20Articles/Features/Writing%20a%20Profile-Based%20Article.md#fa-triangle-exclamation-resolving-dangling-content-parts
[Document Profiles]:{ndr}/Repository%20Model/Knowledge%20base%20Articles/Features/Document%20Profiles.md
[Main Body]:{ndr}/Repository%20Model/Knowledge%20base%20Articles/Features/Writing%20a%20Profile-Based%20Article.md#fa-pen-writing-the-content-parts
[MCP Endpoint]:{ndr}/AI/MCP%20Endpoint.md
[MCP Tool Reference]:{ndr}/AI/MCP%20Tool%20Reference.md
[Migrate Azure DevOps Wiki]:{ndr}/Repository%20Model/Knowledge%20base%20Articles/Scenarios/Migrate%20Azure%20DevOps%20Wiki%20Pages%20to%20Profile-Based%20Articles%20with%20AI.md
[Repository Tools]:{ndr}/AI/MCP%20Tool%20Reference/Repository%20Tools.md
[Resources]:{ndr}/Administration/2.%20Monitor%20Management/3.%20Resources/Features/What%20is%20a%20Resource.md
[Snippets]:{ndr}/Repository%20Model/Knowledge%20base%20Articles/Features/Snippets.md
[Templates]:{ndr}/Repository%20Model/Knowledge%20base%20Articles/Features/Templates.md
[Writing a Profile-Based Article]:{ndr}/Repository%20Model/Knowledge%20base%20Articles/Features/Writing%20a%20Profile-Based%20Article.md