Skip to main content
Glama

Get portal insights

get_portal_insights
Read-onlyIdempotent

Read how a portal is used over the last 4, 12, or 26 weeks: visits and feedback per week, median time to first open, and who opened each shared post or doc. Needs owner or admin access.

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": {
      "portalId": "<portalId>"
    },
    "name": "get_portal_insights"
  }
}

Input Schema

NameRequiredDescriptionDefault
weeksNoWeeks to cover: 4, 12, or 26. Default 12.
portalIdYesPortal ID, or the slug of a public portal.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, and destructiveHint=false, so the safety profile is covered. The description adds value beyond that by disclosing the authorization requirement (owner or admin) and the exact metric set returned, which the agent cannot infer from 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.

Conciseness5/5

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

A single sentence that front-loads the action and immediately enumerates the returned metrics, followed by the access constraint. No filler, nothing repeated from the title.

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

Completeness4/5

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

With no output schema, the description correctly takes on the burden of naming the return values, and it covers the access requirement and time windows for a read-only tool with only two parameters. Only minor gaps remain, such as behavior for portals with no activity in the window.

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%, so both parameters are already documented in the schema, and the description largely restates that weeks may be 4, 12, or 26. It adds no new semantics for portalId (slug vs ID is already in the schema), 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?

States a specific verb ('Read how a portal is used') plus the exact metrics returned: weekly visits and feedback, median time to first open, and per-item openers. That metric enumeration clearly separates it from the list_* siblings that return raw records rather than aggregated analytics, though no sibling is named explicitly.

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

Usage Guidelines3/5

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

The access prerequisite ('Needs owner or admin access') is useful context, and the time windows imply an analytics/rollup use case. However, it never says when to pick this over list_portal_feedback or list_portal_items for per-record data, nor any exclusion such as unsupported portal types.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources