Skip to main content
Glama

AI Agent Analytics

Get observed agent relationships

get_agents
Read-onlyIdempotent

Return the most recently observed countable-external pseudonymous agent relationships for product_id, ordered newest first by last_seen_at. Use this for repeat and relationship history; do not use it for acquisition sources, use get_discovery, or for settled commerce, use get_revenue. limit defaults to 100, maxes at 200, and only truncates returned rows, not evidence thresholds or identity rules. Requires analytics:read; unknown traffic is excluded, raw prompts/IPs/credentials are never returned, and the shared MCP limit is 300 calls per 60 seconds per caller before HTTP 429 with Retry-After.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
limitNoMaximum relationship rows to return, 1 through 200 inclusive. Defaults to 100 when omitted.
product_idYesExact AI Agent Analytics product/property ID returned by list_products. Do not pass a product name, URL, or organization ID.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
agentsYes
schemaYesDelegated response schema identifier.
productYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed8 schema fields changed
    • addedOutput schema / properties / agents / additionalProperties
      Added value: +{}
    • removedOutput schema / properties / agents / description
      Removed value: -"Privacy-safe pseudonymous agent relationship and repeat-use evidence."
    • addedOutput schema / properties / agents / properties
      Added value: +{
      +  "generated_at": {
      +    "description": "UTC generation timestamp.",
      +    "type": "string"
      +  },
      +  "integrity": {
      +    "additionalProperties": {},
      +    "properties": {
      +      "identity_model": {
      +        "type": "string"
      +      },
      +      "invasive_fingerprinting": {
      +        "type": "boolean"
      +      },
      +      "note": {
      +        "type": "string"
      +      },
      +      "summary_scope": {
      +        "type": "string"
      +      },
      +      "unknown_external_excluded": {
      +        "type": "boolean"
      +      }
      +    },
      +    "required": [
      +      "identity_model",
      +      "unknown_external_excluded",
      +      "invasive_fingerprinting",
      +      "summary_scope",
      +      "note"
      +    ],
      +    "type": "object"
      +  },
      +  "property_id": {
      +    "description": "Product/property ID.",
      +    "type": [
      +      "string",
      +      "null"
      +    ]
      +  },
      +  "relationships": {
      +    "description": "Most recently observed countable-external agent relationships.",
      +    "items": {
      +      "additionalProperties": {},
      +      "properties": {
      +        "actor_id": {
      +          "description": "Pseudonymous stable actor identifier.",
      +          "type": "string"
      +        },
      +        "confidence": {
      +          "description": "Evidence confidence.",
      +          "enum": [
      +            "confirmed",
      +            "probable"
      +          ],
      +          "type": "string"
      +        },
      +        "delivered_receipts": {
      +          "maximum": 9007199254740991,
      +          "minimum": 0,
      +          "type": "integer"
      +        },
      +        "display_id": {
      +          "description": "Short privacy-safe display identifier.",
      +          "type": "string"
      +        },
      +        "first_seen_at": {
      +          "type": [
      +            "string",
      +            "null"
      +          ]
      +        },
      +        "invocation_count": {
      +          "maximum": 9007199254740991,
      +          "minimum": 0,
      +          "type": "integer"
      +        },
      +        "last_seen_at": {
      +          "type": [
      +            "string",
      +            "null"
      +          ]
      +        },
      +        "relationship_state": {
      +          "description": "Observed relationship state, such as engaged_agent or delivered_customer.",
      +          "type": "string"
      +        },
      +        "repeat": {
      +          "type": "boolean"
      +        },
      +        "settled_receipts": {
      +          "maximum": 9007199254740991,
      +          "minimum": 0,
      +          "type": "integer"
      +        },
      +        "traffic_class": {
      +          "description": "Evidence classification for this observed actor.",
      +          "type": "string"
      +        }
      +      },
      +      "required": [
      +        "actor_id",
      +        "display_id",
      +        "traffic_class",
      +        "confidence",
      +        "first_seen_at",
      +        "last_seen_at",
      +        "invocation_count",
      +        "settled_receipts",
      +        "delivered_receipts",
      +        "repeat",
      +        "relationship_state"
      +      ],
      +      "type": "object"
      +    },
      +    "type": "array"
      +  },
      +  "result_limit": {
      +    "description": "Applied relationship-row limit.",
      +    "maximum": 200,
      +    "minimum": 1,
      +    "type": "integer"
      +  },
      +  "returned_relationships": {
      +    "description": "Rows returned after the requested limit.",
      +    "maximum": 9007199254740991,
      +    "minimum": 0,
      +    "type": "integer"
      +  },
      +  "schema_version": {
      +    "description": "Agent-relationships schema version.",
      +    "type": "string"
      +  },
      +  "summary": {
      +    "additionalProperties": {},
      +    "description": "Summary over returned relationships, not all historical actors.",
      +    "properties": {
      +      "confirmed_relationships": {
      +        "maximum": 9007199254740991,
      +        "minimum": 0,
      +        "type": "integer"
      +      },
      +      "delivered_relationships": {
      +        "maximum": 9007199254740991,
      +        "minimum": 0,
      +        "type": "integer"
      +      },
      +      "observed_relationships": {
      +        "maximum": 9007199254740991,
      +        "minimum": 0,
      +        "type": "integer"
      +      },
      +      "paying_relationships": {
      +        "maximum": 9007199254740991,
      +        "minimum": 0,
      +        "type": "integer"
      +      },
      +      "probable_relationships": {
      +        "maximum": 9007199254740991,
      +        "minimum": 0,
      +        "type": "integer"
      +      },
      +      "repeat_relationships": {
      +        "maximum": 9007199254740991,
      +        "minimum": 0,
      +        "type": "integer"
      +      }
      +    },
      +    "required": [
      +      "observed_relationships",
      +      "confirmed_relationships",
      +      "probable_relationships",
      +      "repeat_relationships",
      +      "paying_relationships",
      +      "delivered_relationships"
      +    ],
      +    "type": "object"
      +  }
      +}
    • addedOutput schema / properties / agents / required
      Added value: +[
      +  "schema_version",
      +  "property_id",
      +  "generated_at",
      +  "returned_relationships",
      +  "result_limit",
      +  "summary",
      +  "relationships",
      +  "integrity"
      +]
    • addedOutput schema / properties / agents / type
      Added value: +"object"
    • changedOutput schema / properties / product / properties / id / description
      Previous value: -"Product/property ID."New value: +"Tenant-checked product/property ID."
    • changedOutput schema / properties / product / properties / time_zone / description
      Previous value: -"IANA time zone used for product-local daily interpretation."New value: +"IANA time zone used for product-local interpretation."
    • changedOutput schema / properties / schema / description
      Previous value: -"Response schema identifier."New value: +"Delegated response schema identifier."
  2. Changed3 schema fields changed
    • changedInput schema / properties / limit / description
      Previous value: -"Maximum observed relationships to return, from 1 to 200."New value: +"Maximum relationship rows to return, 1 through 200 inclusive. Defaults to 100 when omitted."
    • changedInput schema / properties / product_id / description
      Previous value: -"AI Agent Analytics product/property ID from list_products."New value: +"Exact AI Agent Analytics product/property ID returned by list_products. Do not pass a product name, URL, or organization ID."
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "$schema": "https://json-schema.org/draft/2020-12/schema",
      +  "additionalProperties": {},
      +  "properties": {
      +    "agents": {
      +      "description": "Privacy-safe pseudonymous agent relationship and repeat-use evidence."
      +    },
      +    "product": {
      +      "additionalProperties": {},
      +      "properties": {
      +        "id": {
      +          "description": "Product/property ID.",
      +          "type": "string"
      +        },
      +        "name": {
      +          "description": "Product name.",
      +          "type": "string"
      +        },
      +        "time_zone": {
      +          "description": "IANA time zone used for product-local daily interpretation.",
      +          "type": "string"
      +        }
      +      },
      +      "required": [
      +        "id",
      +        "name",
      +        "time_zone"
      +      ],
      +      "type": "object"
      +    },
      +    "schema": {
      +      "description": "Response schema identifier.",
      +      "type": "string"
      +    }
      +  },
      +  "required": [
      +    "schema",
      +    "product",
      +    "agents"
      +  ],
      +  "type": "object"
      +}
  3. First observed

TDQS

A4.9/5.0
Behavior5/5

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

Beyond the read-only/idempotent annotations, the description adds meaningful behavioral context: the limit semantics (truncates rows but not thresholds/identity rules), the analytics:read permission requirement, exclusion of unknown traffic, a hard guarantee that prompts/IPs/credentials are never returned, and the 300-calls/60s shared MCP rate limit with HTTP 429 and Retry-After. These are not inferable from annotations and materially affect safe invocation.

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?

Three dense sentences, each carrying a distinct responsibility: function, usage guidance, and operational constraints. The most important information (what it returns and when to use it) is front-loaded.

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?

With an output schema present and annotations carrying the safety profile, the description covers the operational envelope (auth, rate limit, data exclusions, limit semantics) and explicit routing. Nothing needed to call this correctly at runtime is missing from the description.

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?

Schema coverage is 100%, so the baseline is 3, but the description adds nuance: limit 'only truncates returned rows, not evidence thresholds or identity rules' and that defaults/max are 100/200. This extra context clarifies that limit is a presentation-level cap, not a data inclusion filter.

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

Purpose5/5

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

The description opens with the exact operation: returning recently observed countable-external pseudonymous agent relationships for product_id, ordered by last_seen_at. It explicitly distinguishes itself from get_discovery and get_revenue while the title and name reinforce the resource. This gives an agent a precise mental model with no ambiguity.

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?

The description states 'Use this for repeat and relationship history' and then gives two explicit negative cases with named alternatives: 'do not use it for acquisition sources, use get_discovery, or for settled commerce, use get_revenue.' This leaves no room for misrouting.

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