Skip to main content
Glama

GleanMark USPTO Trademark Search

Run Safe Analytics Query

run_safe_analytics
Read-onlyIdempotent

Runs a constrained analytics query over owners, law firms and correspondents (rankings, counts, snapshots and timelines) and returns the results without exposing database details. Suited to custom aggregate business questions that a single search or summary tool does not answer.

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": {
      "analysis_type": "<analysis_type>",
      "entity": "<entity>"
    },
    "name": "run_safe_analytics"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoMaximum number of ranked rows, preview marks, or timeline events to return.
entityYesWhat to analyze. Ranking currently supports owners. Count, snapshot, and timeline also support firms and correspondents.
metricNoRequired for count. Ranking currently supports filings only.
filtersNo
subject_nameNoRequired for count, snapshot, and timeline. Examples: "Ideaya Biosciences", "Goodwin Procter", or "Todd Schneider".
analysis_typeYesBusiness analytics mode: ranking, count, snapshot, or timeline.

Output Schema

NameRequiredDescriptionDefault
titleYes
entityYes
metricYes
summaryYes
rankingsYes
returnedYes
resolutionYes
count_resultYes
subject_nameYes
analysis_typeYes
filters_appliedYes
snapshot_resultYes
timeline_resultYes
resolved_subjectYes
open_in_gleanmarkYes
total_matching_marksNo
total_matching_entitiesNo
total_matching_live_marksNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / filters / properties / recent_window_days / maximum
      Previous value: -730New value: +3650
  2. Added

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive and closed-world, so the safety profile is covered. The description adds genuine context beyond that: results are returned "without exposing database details" and the query is "constrained," telling the agent output is aggregated/sanitized rather than raw records. It still says nothing about result caps beyond the limit parameter or error behavior for unsupported mode/entity combinations.

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?

Two sentences, front-loaded with the action and scope, then the selection rationale. Nothing is redundant, though the closing clause about "a single search or summary tool" is slightly wordy for the guidance it delivers.

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?

An output schema exists, so return values need no explanation, and the nested filter object is fully described in the schema. For a six-parameter tool with four analysis modes, the description covers what the tool is and roughly when to reach for it; the only real gap is mode-specific prerequisites, which the schema handles.

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 high (83%), so the schema already documents limit, entity, metric, filters and subject_name in detail, including mode-specific requirements. The description only restates the entity and analysis-mode vocabulary that the enums already provide, adding no syntax, defaults, or format guidance of its own.

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 and resource ("runs a constrained analytics query") and enumerates the entity scope (owners, law firms, correspondents) and output modes (rankings, counts, snapshots, timelines). It also frames itself against generic "single search or summary" tools, so an agent can tell it is the aggregate-question path, 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 second sentence gives a selection rule — use this for custom aggregate business questions that a single search or summary tool does not answer — which is real but vague since no specific alternative tool is named. There is no guidance on when NOT to use it or how to choose between the four analysis types, leaving the agent to infer from the enum descriptions.

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