Skip to main content
Glama

List agent interactions

agents_interactions_list
Read-onlyIdempotent

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 changed
    • addedOutput schema / $defs / ActorID
      Added value: +{
      +  "pattern": "^actr_[a-z2-7]{26}$",
      +  "type": "string"
      +}
    • addedOutput schema / $defs / AgentInteraction / properties / resolved_by_actor_id
      Added value: +{
      +  "$ref": "#/$defs/ActorID",
      +  "description": "The actor who resolved the interaction. Present on resolved interactions; absent on open or canceled interactions."
      +}
    • changedOutput schema / $defs / AgentInteraction / properties / resolved_by_input_id / description
      Previous value: -"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."New value: +"The agent input that canceled the interaction — the content input that superseded it, or the cancel control input. Absent on open interactions and on resolutions that were answered directly. Present only when the interaction was canceled or superseded."
  2. Changed3 schema fields changed
    • 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"
      +}
  3. Changed3 schema fields changed
    • 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_...)."
  4. 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, non-destructive and closed-world, so the safety profile is covered. The description adds genuine context beyond that: results are ordered oldest first and include each interaction's form and answers. It omits pagination/rate-limit behavior, but the cursor and limit fields in the schema cover paging adequately.

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 compact sentence, front-loaded with the verb and resource, then ordering and content, then filtering. Every clause carries information; nothing is repeated from the title or schema.

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?

For a read-only paginated list with an output schema, the description covers purpose, ordering, returned content, and the key filter. Return-value shape need not be explained because an output schema exists. Only the subagent-inclusion behavior goes unmentioned in prose, and the schema documents it.

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 baseline is 3. The description restates the state enum values but adds no syntax or semantics beyond the schema, and it says nothing about include_subagents, limit, or cursor — all of which are already documented in the schema, so the omission is not costly.

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 (lists an agent's permission prompts and ask_question questions) and adds scope detail — oldest-first ordering and that each entry carries its form and answers. That is well beyond the title. It stops short of naming the sibling that acts on these items (agents_interactions_resolve), so the differentiation is implied rather than stated.

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 mention that 'state filters by open, resolved, or canceled' implicitly tells an agent to pass state=open to find pending prompts, which is useful situational guidance. However, there is no explicit when-to-use statement, no exclusion, and no pointer to agents_interactions_resolve as the tool for answering a prompt once found.

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.