Skip to main content
Glama

Raw Microsoft Graph Request

graph_query
Destructive

Execute arbitrary Microsoft Graph API requests to perform Microsoft 365 operations not covered by other tools, with configurable method, path, headers, and JSON body.

Instructions

Execute an arbitrary Microsoft Graph API query. Use this for operations not covered by other tools.

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": {
      "method": "<method>",
      "path": "<path>"
    },
    "name": "graph_query"
  }
}

Input Schema

NameRequiredDescriptionDefault
bodyNoJSON request body as a string
pathYesGraph API path (e.g., /me/memberOf)
methodYesHTTP method: GET, POST, PUT, PATCH, or DELETE
headersNoExtra request headers, e.g. { "If-Match": "<etag>" } for concurrency-controlled writes. Allowed: Accept, Accept-Language, client-request-id, ConsistencyLevel, Content-Type, If-Match, If-None-Match, Prefer
versionNoAPI version: v1.0 or beta (default: v1.0)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv1.6.1
    • changedInput schema / properties / headers / description
      Previous value: -"Extra request headers, e.g. { \"If-Match\": \"<etag>\" } for concurrency-controlled writes"New value: +"Extra request headers, e.g. { \"If-Match\": \"<etag>\" } for concurrency-controlled writes. Allowed: Accept, Accept-Language, client-request-id, ConsistencyLevel, Content-Type, If-Match, If-None-Match, Prefer"
  2. First observedv0.1.0

TDQS

B3.4/5.0
Behavior2/5

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

Annotations already declare destructiveHint=true and openWorldHint=true, so the safety profile is carried structurally. The description adds nothing about prerequisites (OAuth scopes/permissions), throttling and retry behavior, pagination via @odata.nextLink, or what errors or response shapes to expect from an unvalidated passthrough. For a raw, unvalidated mutation-capable request tool, that is a meaningful gap.

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?

Two short sentences, the core action first and the routing rule second. Nothing is padded or redundant.

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?

This is a five-parameter, destructive, open-world passthrough with no output schema, yet the description offers no guidance on permissions, idempotency, pagination, or consequences of DELETE/PATCH calls. It is enough to identify the tool but not enough to invoke it safely and correctly.

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 description coverage is 100%, with per-parameter notes for path, method, body, headers (including If-Match concurrency) and the version enum. The description contributes no additional parameter meaning, so the baseline of 3 applies.

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?

The description gives a specific verb and resource ('Execute an arbitrary Microsoft Graph API query') and explicitly positions the tool as the escape hatch for operations not covered by siblings. The only blemish is that 'query' undersells the tool, since the schema allows POST/PUT/PATCH/DELETE mutations.

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

Usage Guidelines4/5

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

It states the selection condition clearly: use this when no other tool covers the operation. That is an explicit fallback rule relative to the sibling set. It stops short of saying to always prefer a dedicated tool when one exists, or of warning that a dedicated tool is safer/validated.

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