Skip to main content
Glama

AnyShare by Anysoft

Viewer and page analytics

get_document_analytics
Read-onlyIdempotent

Read aggregate recorded engagement for exactly one document_id, share_link_id or room_id. Use share_link_id for a recipient link; the host may reserve link_id for connected-account selection. Default summary has no sessions or emails. Choose detail=sessions for visit/page detail; include_viewer_identities=true only when the user explicitly asks about recorded viewers. Captured emails are not necessarily verified; anonymous visits do not identify people. Does not record views.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "get_document_analytics"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNo
sinceNo
untilNo
cursorNo
detailNoSummary by default; choose sessions only for requested visit/page detail.summary
link_idNoLegacy recipient-link selector. Prefer share_link_id; some hosts reserve link_id for account selection.
room_idNoExisting data room in the connected organization.
document_idNo
share_link_idNoRecipient share-link ID returned by create_share_link; not the host's connected-account ID.
include_viewer_identitiesNoReturn recorded emails and verification status only for an explicit viewer identity request; requires detail=sessions.

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already cover safety (readOnlyHint, idempotentHint, destructiveHint=false, openWorldHint=false), so the description's value is in what it adds: default responses omit sessions and emails, captured emails are unverified, anonymous visits are not identifiable, and the tool never records views. Those are genuinely useful behavioral and data-quality disclosures. It does not explain what happens when zero or multiple selectors are supplied, nor anything about pagination/cursor or result-size behavior, leaving a real gap.

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 definition is dense and front-loaded: scope first, then selector disambiguation, then mode/default warnings. Nearly every sentence carries decision-relevant information. The clause "the host may reserve link_id for connected-account selection" is compressed enough to be slightly ambiguous on first read, which keeps it off a 5.

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?

An output schema exists, so return-shape explanation is unnecessary, and the annotations cover the safety profile. Given that, the description supplies what is actually missing for correct invocation: selector semantics, default-vs-detail tradeoff, the privacy-sensitive flag's condition, and data-quality caveats.

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

Parameters4/5

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

With 50% schema coverage over 10 parameters, the description compensates where it matters most: the share_link_id vs link_id distinction (the schema itself only calls link_id "legacy"), the detail enum tradeoff, and the include_viewer_identities gate tied to detail=sessions. limit, cursor, since, until and room_id are left entirely to the schema, so several parameters still carry no extra meaning from the description.

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 opens with a specific verb+resource ("Read aggregate recorded engagement") and immediately constrains the scope to exactly one of document_id, share_link_id or room_id, which is exactly what an agent needs to select it. It lacks an explicit contrast with a named alternative (e.g. a live-tracking or per-viewer tool), instead only saying "Does not record views", so it stops just short of full sibling differentiation.

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?

It gives concrete when-to-use rules for the ambiguous selectors ("Use share_link_id for a recipient link"; link_id may be reserved by the host), states the default mode and when to change it ("Choose detail=sessions for visit/page detail"), and sets an explicit gate on include_viewer_identities (only on an explicit viewer-identity request). The negative guidance ("Does not record views", "anonymous visits do not identify people") further bounds when this tool is the wrong choice.

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