Skip to main content
Glama
Microsoft 365 MCP Server

Microsoft 365 MCP Server

by Softeria

create-onenote-section

create-onenote-section
Destructive

Adds a new section to a specified OneNote notebook, letting you organize notes by topic with a provided section name.

Instructions

Create a new onenoteSection in the specified notebook.

šŸ’” TIP: Creates a new section in a notebook. Body: { displayName: 'Section Name' }.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "body": "<body>",
      "notebookId": "<notebookId>"
    },
    "name": "create-onenote-section"
  }
}

Input Schema

NameRequiredDescriptionDefault
bodyYes
confirmNoFor destructive operations when the confirm gate is enabled (MS365_MCP_REQUIRE_CONFIRM=true; off by default). Set to true only after the user has explicitly approved this action. When the gate is on, calls without confirm: true return { error: "confirmation_required" } without touching user data.
notebookIdYesValue for the 'notebookId' path segment. Pass it under the name 'notebookId', not as 'id'. Use the 'id' field of the notebook object as returned by Microsoft Graph.
includeHeadersNoInclude response headers (including ETag) in the response metadata
excludeResponseNoExclude the full response body and only return success or failure indication

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed9 schema fields changedv0.190.2
    • removedInput schema / $defs / def10
      Removed value: -{
      -  "type": "boolean"
      -}
    • removedInput schema / $defs / def8
      Removed value: -{
      -  "type": "boolean"
      -}
    • removedInput schema / $defs / def9
      Removed value: -{
      -  "type": "boolean"
      -}
    • removedInput schema / properties / confirm / allOf
      Removed value: -[
      -  {
      -    "$ref": "#/$defs/def8"
      -  }
      -]
    • addedInput schema / properties / confirm / type
      Added value: +"boolean"
    • removedInput schema / properties / excludeResponse / allOf
      Removed value: -[
      -  {
      -    "$ref": "#/$defs/def9"
      -  }
      -]
    • addedInput schema / properties / excludeResponse / type
      Added value: +"boolean"
    • removedInput schema / properties / includeHeaders / allOf
      Removed value: -[
      -  {
      -    "$ref": "#/$defs/def10"
      -  }
      -]
    • addedInput schema / properties / includeHeaders / type
      Added value: +"boolean"
  2. Changed21 schema fields changedv0.176.1
    • addedInput schema / $defs / def10
      Added value: +{
      +  "type": "boolean"
      +}
    • removedInput schema / $defs / def4 / properties / createdDateTime / description
      Removed value: -"The date and time when the page was created. The timestamp represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. Read-only."
    • removedInput schema / $defs / def4 / properties / lastModifiedDateTime / description
      Removed value: -"The date and time when the page was last modified. The timestamp represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. Read-only."
    • removedInput schema / $defs / def4 / properties / level / description
      Removed value: -"The indentation level of the page. Read-only."
    • removedInput schema / $defs / def4 / properties / order / description
      Removed value: -"The order of the page within its parent section. Read-only."
    • removedInput schema / $defs / def5 / properties / createdDateTime / description
      Removed value: -"The date and time when the page was created. The timestamp represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. Read-only."
    • removedInput schema / $defs / def5 / properties / lastModifiedDateTime / description
      Removed value: -"The date and time when the notebook was last modified. The timestamp represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. Read-only."
    • removedInput schema / $defs / def6 / properties / createdDateTime / description
      Removed value: -"The date and time when the page was created. The timestamp represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. Read-only."
    • removedInput schema / $defs / def6 / properties / lastModifiedDateTime / description
      Removed value: -"The date and time when the notebook was last modified. The timestamp represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. Read-only."
    • removedInput schema / $defs / def7 / properties / createdDateTime / description
      Removed value: -"The date and time when the page was created. The timestamp represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. Read-only."
    • removedInput schema / $defs / def7 / properties / lastModifiedDateTime / description
      Removed value: -"The date and time when the notebook was last modified. The timestamp represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. Read-only."
    • addedInput schema / $defs / def8
      Added value: +{
      +  "type": "boolean"
      +}
    • addedInput schema / $defs / def9
      Added value: +{
      +  "type": "boolean"
      +}
    • removedInput schema / properties / body / properties / createdDateTime / description
      Removed value: -"The date and time when the page was created. The timestamp represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. Read-only."
    • removedInput schema / properties / body / properties / lastModifiedDateTime / description
      Removed value: -"The date and time when the notebook was last modified. The timestamp represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. Read-only."
    • addedInput schema / properties / confirm / allOf
      Added value: +[
      +  {
      +    "$ref": "#/$defs/def8"
      +  }
      +]
    • removedInput schema / properties / confirm / type
      Removed value: -"boolean"
    • addedInput schema / properties / excludeResponse / allOf
      Added value: +[
      +  {
      +    "$ref": "#/$defs/def9"
      +  }
      +]
    • removedInput schema / properties / excludeResponse / type
      Removed value: -"boolean"
    • addedInput schema / properties / includeHeaders / allOf
      Added value: +[
      +  {
      +    "$ref": "#/$defs/def10"
      +  }
      +]
    • removedInput schema / properties / includeHeaders / type
      Removed value: -"boolean"
  3. Addedv0.134.4
  4. Removedv0.131.2
  5. Changed7 schema fields changedv0.131.2
    • changedInput schema / additionalProperties
      Previous value: -falseNew value: +true
    • removedInput schema / properties / body / properties / pages / items / properties / parentNotebook / properties / sectionGroups / items / properties / sections / items / $ref
      Removed value: -"#/properties/body"
    • addedInput schema / properties / body / properties / pages / items / properties / parentNotebook / properties / sectionGroups / items / properties / sections / items / additionalProperties
      Added value: +true
    • addedInput schema / properties / body / properties / pages / items / properties / parentNotebook / properties / sectionGroups / items / properties / sections / items / properties
      Added value: +{
      +  "createdBy": {
      +    "$ref": "#/properties/body/properties/createdBy"
      +  },
      +  "createdDateTime": {
      +    "anyOf": [
      +      {
      +        "description": "The date and time when the page was created. The timestamp represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. Read-only.",
      +        "format": "date-time",
      +        "pattern": "^[0-9]{4,}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]{1,12})?(Z|[+-][0-9][0-9]:[0-9][0-9])$",
      +        "type": "string"
      +      },
      +      {
      +        "type": "null"
      +      }
      +    ],
      +    "description": "The date and time when the page was created. The timestamp represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. Read-only."
      +  },
      +  "displayName": {
      +    "description": "The name of the notebook.",
      +    "type": [
      +      "string",
      +      "null"
      +    ]
      +  },
      +  "id": {
      +    "description": "The unique identifier for an entity. Read-only.",
      +    "type": "string"
      +  },
      +  "isDefault": {
      +    "description": "Indicates whether this is the user's default section. Read-only.",
      +    "type": [
      +      "boolean",
      +      "null"
      +    ]
      +  },
      +  "lastModifiedBy": {
      +    "$ref": "#/properties/body/properties/createdBy"
      +  },
      +  "lastModifiedDateTime": {
      +    "anyOf": [
      +      {
      +        "description": "The date and time when the notebook was last modified. The timestamp represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. Read-only.",
      +        "format": "date-time",
      +        "pattern": "^[0-9]{4,}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]{1,12})?(Z|[+-][0-9][0-9]:[0-9][0-9])$",
      +        "type": "string"
      +      },
      +      {
      +        "type": "null"
      +      }
      +    ],
      +    "description": "The date and time when the notebook was last modified. The timestamp represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. Read-only."
      +  },
      +  "links": {
      +    "$ref": "#/properties/body/properties/links"
      +  },
      +  "pages": {
      +    "description": "The collection of pages in the section.  Read-only. Nullable.",
      +    "items": {
      +      "$ref": "#/properties/body/properties/pages/items"
      +    },
      +    "type": "array"
      +  },
      +  "pagesUrl": {
      +    "description": "The pages endpoint where you can get details for all the pages in the section. Read-only.",
      +    "type": [
      +      "string",
      +      "null"
      +    ]
      +  },
      +  "parentNotebook": {
      +    "$ref": "#/properties/body/properties/pages/items/properties/parentNotebook"
      +  },
      +  "parentSectionGroup": {
      +    "$ref": "#/properties/body/properties/pages/items/properties/parentNotebook/properties/sectionGroups/items"
      +  },
      +  "self": {
      +    "description": "The endpoint where you can get details about the page. Read-only.",
      +    "type": [
      +      "string",
      +      "null"
      +    ]
      +  }
      +}
    • addedInput schema / properties / body / properties / pages / items / properties / parentNotebook / properties / sectionGroups / items / properties / sections / items / type
      Added value: +"object"
    • changedInput schema / properties / body / properties / pages / items / properties / parentNotebook / properties / sections / items / $ref
      Previous value: -"#/properties/body"New value: +"#/properties/body/properties/pages/items/properties/parentNotebook/properties/sectionGroups/items/properties/sections/items"
    • changedInput schema / properties / body / properties / pages / items / properties / parentSection / $ref
      Previous value: -"#/properties/body"New value: +"#/properties/body/properties/pages/items/properties/parentNotebook/properties/sectionGroups/items/properties/sections/items"
  6. Changed1 schema field changedv0.131.1
    • addedInput schema / properties / confirm
      Added value: +{
      +  "description": "For destructive operations when the confirm gate is enabled (MS365_MCP_REQUIRE_CONFIRM=true; off by default). Set to true only after the user has explicitly approved this action. When the gate is on, calls without confirm: true return { error: \"confirmation_required\" } without touching user data.",
      +  "type": "boolean"
      +}
  7. Addedv0.114.0
  8. Removedv0.112.2
  9. Addedv0.110.0
  10. Removedv0.108.0
  11. Addedv0.96.0

TDQS

C2.8/5.0
Behavior2/5

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

Annotations already declare destructiveHint=true, readOnlyHint=false and openWorldHint=true, so the description owes context beyond that and mostly supplies none — no mention of the confirm gate, required permissions, or that the new section persists in the notebook. Its one useful addition is the body shape hint (displayName is the payload field), which the nested body schema does not express as required.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

It is short and front-loaded, but the TIP sentence repeats the opening sentence almost verbatim ("Creates a new section in a notebook"), so one of only two sentences carries no new information.

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

Completeness2/5

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

For a destructive, open-world mutation with a deeply nested body object and no output schema, the description omits return behavior, the confirmation requirement, and any failure modes. Only the displayName payload hint fills a real gap left by the schema.

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?

Schema coverage is high (80%), so the baseline is 3, and the description's "Body: { displayName: 'Section Name' }" adds real meaning by telling the agent which field to set in an otherwise read-only-looking nested body object. It says nothing about notebookId, confirm, includeHeaders, or excludeResponse, which the schema already documents.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

Names a specific verb and resource ("Create a new onenoteSection") plus the scoping container ("in the specified notebook"), so the object being created is unambiguous. It does not distinguish itself from nearby siblings such as create-onenote-section-page or create-onenote-notebook, so an agent must infer the boundary from names alone.

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

Usage Guidelines2/5

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

There is no when-to-use guidance: nothing says when to create a section versus a notebook or a section page, and no prerequisites (permissions, notebook existence) are stated. The TIP line only restates the creation action rather than adding selection criteria.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Deploy Server

Other Tools