Skip to main content
Glama
michsob

PowerPlatform MCP

Get Plugin Trace Logs

get-plugin-trace-logs

Retrieve PowerPlatform plugin trace logs with filters for exceptions, entities, messages, and correlation IDs to debug plugin failures and analyze execution history.

Instructions

Get plugin trace logs with filtering options

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
entityNameNoFilter by entity name
messageNameNoFilter by message name (e.g., 'Create', 'Update')
correlationIdNoFilter by correlation ID
pluginStepIdNoFilter by plugin step ID
exceptionOnlyNoOnly show logs with exceptions (default: false)
hoursBackNoHours to look back (default: 24)
maxRecordsNoMaximum number of records (default: 50)
environmentNoEnvironment name (e.g. DEV, UAT). Uses default if omitted.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
totalCountYes
logsYes
Behavior2/5

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

No annotations provided, yet description discloses no behavioral traits. Fails to mention log retention periods, whether results are real-time or delayed, performance implications of large hoursBack values, or that exceptionOnly filters for errors.

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?

Extremely concise single sentence with no wasted words. Verb-fronted structure. However, brevity comes at the cost of completeness for an 8-parameter tool.

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?

Inadequate for complexity: 8 parameters with time-range defaults (hoursBack), exception filtering, and multi-environment support. Output schema exists but description omits what trace logs contain (execution duration, exception details, plugin step sequence).

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 100%, establishing baseline 3. Description mentions 'filtering options' generically but adds no semantic context beyond schema (e.g., explaining correlationId traces request chains across plugins or that environment defaults to the current one).

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

Purpose3/5

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

States the resource ('plugin trace logs') and hints at capabilities ('filtering options'), but borders on tautology by restating the tool name. Does not differentiate from siblings like 'get-entity-plugin-pipeline' (configuration) vs this tool's execution logs purpose.

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?

No guidance on when to use this tool versus alternatives like 'get-entity-plugin-pipeline' or 'get-flow-runs'. Does not mention that this is for debugging plugin execution history or when correlationId filtering is appropriate.

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/michsob/powerplatform-mcp'

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