Skip to main content
Glama

Resolve agent interaction

agents_interactions_resolve

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_actor_idNoThe actor who resolved the interaction. Present on resolved interactions; absent on open or canceled interactions.
resolved_by_input_idNoThe 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.

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 / 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 / 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. Changed13 schema fields changed
    • 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"
      +}
  3. Changed1 schema field changed
    • 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."
  4. Changed4 schema fields changed
    • 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_...)."
  5. First observed

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare a non-read-only, open-world, non-idempotent, non-destructive mutation. The description adds useful behavior beyond that: resolving the interaction resumes the paused agent, returns the resolved interaction, and defines the permission-prompt option mapping. It does not cover error behavior or what happens if the interaction is already resolved.

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, front-loaded with the core action and effect, then the answer format. There is no redundant wording or repeated schema detail.

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 mutation tool with nested parameters and an output schema, the description covers the essential purpose, resumption effect, and answer encoding. The main minor gap is that it does not mention that the interaction must still be open or what happens if it is not.

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 schema already documents most parameter semantics. The description still adds meaningful detail by specifying one answer per question and the permission-prompt convention that 0 means Allow and 1 means Deny, which is not stated 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?

The description states a specific action (answers an open permission prompt or question), its immediate effect (the paused agent resumes), and the return (the resolved interaction). It is clear on its own, but it does not explicitly distinguish itself from siblings such as agents_input or agents_interactions_list.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It gives clear usage context: use this when an agent is paused on an open permission prompt or question. It does not state exclusions or name alternatives, such as using agents_interactions_list to find open interactions first.

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.