Skip to main content
Glama
XMV-Solutions-GmbH

mcp-server-sharepoint

sp_auth_begin

Initiates Microsoft Identity device code login for a SharePoint profile. Returns user code and verification URL; background polling continues until sign-in completes.

Instructions

Initiate Microsoft Identity Device Code login for profile (default 'default'). Non-blocking: returns within ~1s with user_code + verification_url. A background task continues to poll Microsoft Identity and writes the token on success — the agent should poll sp_auth_status until status is 'signed_in', or until the user completes / cancels the flow.

Idempotency: if a pending session already exists for this profile, the existing session is returned unchanged unless force=True (which cancels and restarts).

AGENT_INSTRUCTIONS: Present the verification code to the user inside a fenced code block (so it can be copied with one click) and present the verification URL as a plain markdown link on its own line. Do not paraphrase, do not embed the code inside prose, do not wrap the URL in bold. Example:

Code:
```
ABCD-1234
```

Sign-in URL: https://login.microsoftonline.com/...

Rationale: in a chat UI, a code inside a fenced block gets a one-click copy button; a bare URL becomes clickable; bold-wrapped links and inline codes do not.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
forceNo
profileNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior5/5

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

Annotations indicate readOnlyHint=false and openWorldHint=true, but the description adds critical behavior: non-blocking, background polling, idempotency for existing sessions, and force parameter effect. No contradiction with annotations; the description enriches understanding beyond structured fields.

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

Conciseness4/5

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

The description is thorough but slightly verbose. However, it is well-structured: first paragraph covers core behavior, second covers idempotency, third gives agent formatting instructions. Every sentence adds value. Minor room for tightening.

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?

Given the complexity of an auth flow with background polling and idempotency, the description covers all necessary aspects: initiation, non-blocking, polling guidance, idempotency, force restart, and agent instructions. Output schema exists, so return values are specified elsewhere. The description is complete for correct tool usage.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The input schema has 2 parameters with 0% description coverage. The description fully explains profile (default 'default') and force (cancels and restarts pending session). It adds meaning that the schema alone lacks, such as default values and behavioral effects.

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 it initiates a Microsoft Identity Device Code login for a profile. It specifies non-blocking behavior, returns user_code and verification_url, and contrasts with sp_auth_status for polling. The verb 'Initiate' and resource 'Microsoft Identity Device Code login' are specific and distinct from sibling tools.

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 explicitly says when to use this tool (to begin login) and when to use sp_auth_status (poll for status). It covers idempotency: existing pending session is returned unless force=True, which cancels and restarts. It also instructs the agent to present the code in a fenced block and URL as a plain link.

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/XMV-Solutions-GmbH/sharepoint-mcp'

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