Skip to main content
Glama

List agent interactions

agents_interactions_list
Read-onlyIdempotent

List an agent's permission prompts and ask_question questions oldest first, including forms and answers, and filter by open, resolved, or canceled state.

Instructions

Lists an agent's permission prompts and ask_question questions, oldest first, with each one's form and answers. state filters by open, resolved, or canceled.

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": {
      "agentID": "<agentID>",
      "orgID": "<orgID>",
      "projectID": "<projectID>"
    },
    "name": "agents_interactions_list"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoMaximum number of items to return in one page.
orgIDYesOrganization ID (org_...).
stateNoReturn only interactions in this state. Omit to return all.
cursorNoOpaque pagination cursor from a previous response's next_cursor. Omit for the first page.
agentIDYesAgent ID (agt_...).
projectIDYesProject ID (proj_...).
include_subagentsNoAlso return interactions from every subagent beneath this agent. Resolve those against the subagent's own agent_id.

Output Schema

NameRequiredDescriptionDefault
dataYes
next_cursorYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changedv0.1.10
    • addedInput schema / properties / state / description
      Added value: +"Return only interactions in this state. Omit to return all."
    • removedInput schema / properties / state / x-enum-varnames
      Removed value: -[
      -  "AgentInteractionStateOpen",
      -  "AgentInteractionStateResolved",
      -  "AgentInteractionStateCanceled"
      -]
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "$defs": {
      +    "AgentID": {
      +      "pattern": "^agt_[a-z2-7]{26}$",
      +      "type": "string"
      +    },
      +    "AgentInputID": {
      +      "pattern": "^ain_[a-z2-7]{26}$",
      +      "type": "string"
      +    },
      +    "AgentInteraction": {
      +      "properties": {
      +        "agent_id": {
      +          "$ref": "#/$defs/AgentID"
      +        },
      +        "agent_name": {
      +          "$ref": "#/$defs/AgentName",
      +          "description": "Name of the owning agent. Included by both interaction list endpoints."
      +        },
      +        "created_at": {
      +          "$ref": "#/$defs/Timestamp"
      +        },
      +        "destination": {
      +          "$ref": "#/$defs/AgentInteractionDestination",
      +          "description": "Captured built-in integration destination. Absent for dashboard-only or older interactions; never reconstructed from the current agent selection."
      +        },
      +        "id": {
      +          "$ref": "#/$defs/AgentInteractionID"
      +        },
      +        "interaction_kind": {
      +          "$ref": "#/$defs/AgentInteractionKind"
      +        },
      +        "org_id": {
      +          "$ref": "#/$defs/OrganizationID"
      +        },
      +        "presentation_receipt": {
      +          "$ref": "#/$defs/InteractionPresentationReceipt"
      +        },
      +        "project_id": {
      +          "$ref": "#/$defs/ProjectID"
      +        },
      +        "request": {
      +          "$ref": "#/$defs/InteractionForm"
      +        },
      +        "resolution": {
      +          "$ref": "#/$defs/InteractionResolution"
      +        },
      +        "resolved_at": {
      +          "$ref": "#/$defs/Timestamp"
      +        },
      +        "resolved_by_input_id": {
      +          "$ref": "#/$defs/AgentInputID",
      +          "description": "The agent input that resolved the interaction — the submitted response, the content input that superseded it, or the cancel control input. Absent on open interactions and on resolutions without an attributed input. The input's actor_id attributes the resolution."
      +        },
      +        "state": {
      +          "$ref": "#/$defs/AgentInteractionState"
      +        },
      +        "subagent_key": {
      +          "description": "Key of the owning agent when it is a subagent. Included by both interaction list endpoints.",
      +          "type": "string"
      +        },
      +        "tool_call_id": {
      +          "$ref": "#/$defs/ToolCallID",
      +          "description": "The tool call that is waiting on this interaction — the guarded tool for a permission, or the ask_question call for a question."
      +        },
      +        "tool_name": {
      +          "description": "The tool whose invocation a permission interaction guards. Present only when interaction_kind is permission.",
      +          "type": "string"
      +        }
      +      },
      +      "required": [
      +        "id",
      +        "org_id",
      +        "project_id",
      +        "agent_id",
      +        "tool_call_id",
      +        "interaction_kind",
      +        "state",
      +        "request",
      +        "created_at"
      +      ],
      +      "type": "object"
      +    },
      +    "AgentInteractionDestination": {
      +      "description": "Immutable handler and destination captured when the interaction was created. Provider delivery and callbacks check current integration and handler authority. Dashboard/API resolution remains available independently.",
      +      "properties": {
      +        "conversation": {
      +          "$ref": "#/$defs/IntegrationConversation"
      +        },
      +        "handler_key": {
      +          "type": "string"
      +        },
      +        "integration_id": {
      +          "$ref": "#/$defs/IntegrationID"
      +        },
      +        "integration_kind": {
      +          "$ref": "#/$defs/IntegrationKind"
      +        },
      +        "integration_target_id": {
      +          "$ref": "#/$defs/IntegrationTargetID"
      +        }
      +      },
      +      "required": [
      +        "integration_kind",
      +        "handler_key",
      +        "integration_id",
      +        "integration_target_id",
      +        "conversation"
      +      ],
      +      "type": "object"
      +    },
      +    "AgentInteractionID": {
      +      "pattern": "^int_[a-z2-7]{26}$",
      +      "type": "string"
      +    },
      +    "AgentInteractionKind": {
      +      "enum": [
      +        "permission",
      +        "question"
      +      ],
      +      "type": "string"
      +    },
      +    "AgentInteractionState": {
      +      "enum": [
      +        "open",
      +        "resolved",
      +        "canceled"
      +      ],
      +      "type": "string"
      +    },
      +    "AgentName": {
      +      "description": "Agent name. Empty means the agent is unnamed; non-empty values use the ResourceName policy.",
      +      "maxLength": 64,
      +      "type": "string"
      +    },
      +    "IntegrationConversation": {
      +      "additionalProperties": true,
      +      "description": "One concrete provider address, validated by the integration's capabilities.subscription.conversation_schema. Slack uses channel_id and optional thread_ts; Discord uses channel_id for a channel or thread_id for a thread; GitHub uses repository_id and pull_request. Discord accepts optional parent channel_id and guild_id alongside thread_id and validates their ID format, but subscription creation does not verify them against Discord or retain them as routing restrictions. Only thread_id is retained in a canonical thread address and returned by create/list responses. No credentials or runtime state.",
      +      "type": "object"
      +    },
      +    "IntegrationID": {
      +      "pattern": "^itg_[a-z2-7]{26}$",
      +      "type": "string"
      +    },
      +    "IntegrationKind": {
      +      "description": "Registered integration implementation; independent of the saved integration's name and immutable ID.",
      +      "enum": [
      +        "slack_thread",
      +        "discord_thread",
      +        "github_pr"
      +      ],
      +      "type": "string"
      +    },
      +    "IntegrationTargetID": {
      +      "pattern": "^itgt_[a-z2-7]{26}$",
      +      "type": "string"
      +    },
      +    "InteractionAnswer": {
      +      "properties": {
      +        "option_indices": {
      +          "description": "Zero-based indices of the chosen options. Pick one unless the question allows multiple.",
      +          "items": {
      +            "minimum": 0,
      +            "type": "integer"
      +          },
      +          "minItems": 1,
      +          "type": "array",
      +          "uniqueItems": true
      +        },
      +        "text": {
      +          "description": "Free text sent with an option whose allows_text is true.",
      +          "type": "string"
      +        }
      +      },
      +      "required": [
      +        "option_indices"
      +      ],
      +      "type": "object"
      +    },
      +    "InteractionForm": {
      +      "properties": {
      +        "context": {
      +          "items": {
      +            "$ref": "#/$defs/InteractionFormContextItem"
      +          },
      +          "type": "array"
      +        },
      +        "questions": {
      +          "items": {
      +            "$ref": "#/$defs/InteractionFormQuestion"
      +          },
      +          "minItems": 1,
      +          "type": "array"
      +        },
      +        "title": {
      +          "minLength": 1,
      +          "type": "string"
      +        }
      +      },
      +      "required": [
      +        "title",
      +        "questions"
      +      ],
      +      "type": "object"
      +    },
      +    "InteractionFormContextItem": {
      +      "properties": {
      +        "label": {
      +          "minLength": 1,
      +          "type": "string"
      +        },
      +        "value": {
      +          "minLength": 1,
      +          "type": "string"
      +        }
      +      },
      +      "required": [
      +        "label",
      +        "value"
      +      ],
      +      "type": "object"
      +    },
      +    "InteractionFormOption": {
      +      "properties": {
      +        "allows_text": {
      +          "default": false,
      +          "description": "Whether the answer may include optional companion text for this option.",
      +          "type": "boolean"
      +        },
      +        "label": {
      +          "minLength": 1,
      +          "type": "string"
      +        }
      +      },
      +      "required": [
      +        "label"
      +      ],
      +      "type": "object"
      +    },
      +    "InteractionFormQuestion": {
      +      "properties": {
      +        "multiple": {
      +          "default": false,
      +          "description": "Whether the answer may select more than one option.",
      +          "type": "boolean"
      +        },
      +        "options": {
      +          "items": {
      +            "$ref": "#/$defs/InteractionFormOption"
      +          },
      +          "minItems": 1,
      +          "type": "array"
      +        },
      +        "prompt": {
      +          "minLength": 1,
      +          "type": "string"
      +        }
      +      },
      +      "required": [
      +        "prompt",
      +        "options"
      +      ],
      +      "type": "object"
      +    },
      +    "InteractionPresentationReceipt": {
      +      "additionalProperties": true,
      +      "description": "Confirmed provider presentation metadata, when recorded. This is not an execution grant or a delivery guarantee. Absence does not prove a remote send failed. Customer-hosted presenters maintain their own delivery records.",
      +      "type": "object"
      +    },
      +    "InteractionResolution": {
      +      "properties": {
      +        "answers": {
      +          "description": "Answers in the same order as the interaction form's questions.",
      +          "items": {
      +            "$ref": "#/$defs/InteractionAnswer"
      +          },
      +          "minItems": 1,
      +          "type": "array"
      +        }
      +      },
      +      "required": [
      +        "answers"
      +      ],
      +      "type": "object"
      +    },
      +    "OrganizationID": {
      +      "pattern": "^org_[a-z2-7]{26}$",
      +      "type": "string"
      +    },
      +    "ProjectID": {
      +      "description": "Project ID (proj_...).",
      +      "pattern": "^proj_[a-z2-7]{26}$",
      +      "type": "string"
      +    },
      +    "Timestamp": {
      +      "format": "date-time",
      +      "type": "string"
      +    },
      +    "ToolCallID": {
      +      "pattern": "^tcl_[a-z2-7]{26}$",
      +      "type": "string"
      +    }
      +  },
      +  "properties": {
      +    "data": {
      +      "items": {
      +        "$ref": "#/$defs/AgentInteraction"
      +      },
      +      "type": "array"
      +    },
      +    "next_cursor": {
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    }
      +  },
      +  "required": [
      +    "data",
      +    "next_cursor"
      +  ],
      +  "type": "object"
      +}
  2. Changed3 schema fields changedv0.1.1
    • addedInput schema / properties / agentID / description
      Added value: +"Agent ID (agt_...)."
    • addedInput schema / properties / orgID / description
      Added value: +"Organization ID (org_...)."
    • addedInput schema / properties / projectID / description
      Added value: +"Project ID (proj_...)."
  3. 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 readOnly, idempotent, non-destructive, closed-world, so the safety profile is covered. The description adds genuinely new behavior: results are 'oldest first' and each item includes its form and answers, which an agent cannot learn from the annotations. It omits pagination/limit behavior, but cursor semantics live in the schema.

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?

Two tight sentences with zero filler; the resource scope and ordering are front-loaded before the filter note. Every clause carries information.

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 an output schema present, return-value shape need not be explained, and required identifiers are documented in the schema. The description is complete enough for a list tool, with only minor gaps around pagination flow and subagent scoping.

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 100%, so the schema already documents agentID, orgID, projectID, state, limit, and cursor. The description only restates the state filter without adding format or default detail, and says nothing about include_subagents, which is the one parameter whose behavioral effect (subagent scoping) is non-obvious.

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 (lists) and a precisely scoped resource (an agent's permission prompts and ask_question questions), and adds what each item carries (form and answers) plus ordering. The read counterpart is distinguishable from agents_interactions_resolve by verb, though the description never names that sibling 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 'state filters by open, resolved, or canceled' sentence implies the discovery workflow (list open prompts, presumably then resolve them), but no when-to-use/when-not guidance or alternative tool is stated. The agent must infer the routing to agents_interactions_resolve on its own.

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