Skip to main content
Glama

Resolve agent interaction

agents_interactions_resolve

Answer an open permission prompt or question to resume a paused agent, then return the resolved interaction.

Instructions

Answers an open permission prompt or question so the paused agent resumes, and returns the resolved interaction. Send one answer per question with zero-based option_indices; permission prompts use 0 for Allow and 1 for Deny.

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>",
      "answers": "<answers>",
      "interactionID": "<interactionID>",
      "orgID": "<orgID>",
      "projectID": "<projectID>"
    },
    "name": "agents_interactions_resolve"
  }
}

Input Schema

NameRequiredDescriptionDefault
actorNoExternal actor to attribute to the generated interaction_response agent input, upserted by (provider_tenant_id, provider_user_id) atomically with the resolution; a rejected request writes no actor. Only allowed for non-user principals; requests authenticated as a user must omit it and are attributed to the user's omnara actor. When a non-user request omits it, the generated input has no actor attribution.
orgIDYesOrganization ID (org_...).
agentIDYesAgent ID (agt_...).
answersYesOne answer per question, in order.
projectIDYesProject ID (proj_...).
interactionIDYesInteraction ID (int_...).

Output Schema

NameRequiredDescriptionDefault
idYes
stateYes
org_idYes
requestYes
agent_idYes
tool_nameNoThe tool whose invocation a permission interaction guards. Present only when interaction_kind is permission.
agent_nameNoName of the owning agent. Included by both interaction list endpoints.
created_atYes
project_idYes
resolutionNo
destinationNoCaptured built-in integration destination. Absent for dashboard-only or older interactions; never reconstructed from the current agent selection.
resolved_atNo
subagent_keyNoKey of the owning agent when it is a subagent. Included by both interaction list endpoints.
tool_call_idYesThe tool call that is waiting on this interaction — the guarded tool for a permission, or the ask_question call for a question.
interaction_kindYes
presentation_receiptNo
resolved_by_input_idNoThe 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.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed13 schema fields changedv0.1.10
    • addedInput schema / $defs / InteractionAnswer / properties / option_indices / description
      Added value: +"Zero-based indices of the chosen options. Pick one unless the question allows multiple."
    • changedInput schema / $defs / InteractionAnswer / properties / text / description
      Previous value: -"Optional companion text when the selected option allows it."New value: +"Free text sent with an option whose allows_text is true."
    • removedInput schema / $defs / InteractionAnswer / properties / text / x-go-type-skip-optional-pointer
      Removed value: -true
    • changedInput schema / $defs / Metadata / description
      Previous value: -"Arbitrary key-value metadata. Maximum 16 pairs, keys up to 64 characters, values must be strings of up to 512 characters."New value: +"Arbitrary key-value labels stored with the resource."
    • removedInput schema / $defs / Metadata / x-go-type
      Removed value: -"resourcemeta.Metadata"
    • removedInput schema / $defs / Metadata / x-go-type-import
      Removed value: -{
      -  "path": "github.com/omnara-ai/omnara/internal/resourcemeta"
      -}
    • removedInput schema / $defs / Metadata / x-go-type-skip-optional-pointer
      Removed value: -true
    • addedInput schema / properties / actor / properties / display_name / description
      Added value: +"Display name for the actor."
    • addedInput schema / properties / actor / properties / metadata / description
      Added value: +"Key-value attributes for the actor. Replaces stored metadata when sent."
    • addedInput schema / properties / actor / properties / provider_tenant_id / description
      Added value: +"Your tenant or namespace for the user. With provider_user_id, identifies the actor."
    • addedInput schema / properties / actor / properties / provider_user_id / description
      Added value: +"The user's ID in your system. With provider_tenant_id, identifies the actor."
    • addedInput schema / properties / answers / description
      Added value: +"One answer per question, in order."
    • 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"
      +    },
      +    "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": {
      +    "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"
      +}
  2. Changed1 schema field changedv0.1.6
    • changedInput schema / properties / actor / description
      Previous value: -"Identity and attributes of an external actor. Actors are upserted by (provider_tenant_id, provider_user_id) with the external provider. Omitted attributes keep their stored values; provided attributes are overwritten, including empty values. omnara actors are implicit and hosted integrations own their own actor identities."New value: +"External actor to attribute to the generated interaction_response agent input, upserted by (provider_tenant_id, provider_user_id) atomically with the resolution; a rejected request writes no actor. Only allowed for non-user principals; requests authenticated as a user must omit it and are attributed to the user's omnara actor. When a non-user request omits it, the generated input has no actor attribution."
  3. Changed4 schema fields changedv0.1.1
    • addedInput schema / properties / agentID / description
      Added value: +"Agent ID (agt_...)."
    • addedInput schema / properties / interactionID / description
      Added value: +"Interaction ID (int_...)."
    • 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.9/5.0
Behavior4/5

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

Annotations declare readOnlyHint=false, destructiveHint=false, idempotentHint=false and openWorldHint=true, and the description does not contradict them; 'Answers ... so the paused agent resumes' is consistent with a mutation. It adds behavioral context beyond the annotations: the call returns the resolved interaction, and answers must be sent one per question. It does not address the non-idempotent hint (e.g. what re-resolving a closed interaction does), which is the main gap.

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 sentences with no filler. The primary effect (resuming the paused agent and returning the interaction) is front-loaded, and the encoding detail follows as supporting instruction.

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 not be explained, and the nested actor semantics — including the restriction to non-user principals — are fully covered in the schema. What remains thin is the failure/state behavior for a non-idempotent resolution (already resolved, expired, or wrong answer count), which an agent would benefit from knowing before calling.

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 description coverage is 100%, so the baseline would be 3, and the description earns above that by supplying the option_indices semantics the schema omits: zero-based indices with 0 = Allow and 1 = Deny for permission prompts, plus the one-answer-per-question rule. It says nothing extra about the actor, orgID, agentID, projectID or interactionID parameters, but those are thoroughly documented in the schema.

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: 'Answers an open permission prompt or question so the paused agent resumes, and returns the resolved interaction.' The effect on the agent (resumes the paused run) is a genuinely distinguishing detail. It does not name a sibling such as agents_input or agents_interactions_list, so the differentiation is implied rather than explicit.

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?

Usage context is implied by 'open permission prompt or question' — the agent should call this when an interaction is pending and awaiting an answer. There is no explicit when-not guidance, no mention of how to discover open interactions (e.g. via agents_interactions_list), and no statement about what happens if the interaction was already resolved.

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