Skip to main content
Glama

Send agent input

agents_input

Sends a message to an agent and returns the stored input; choose queued or steering delivery, or schedule it for future delivery.

Instructions

Sends a message to an agent and returns the stored input. Queued messages (the default) wait until the agent is ready for new work; steering messages reach it at its next model call. Set scheduled_for to hold the message until a future time: it is stored with state scheduled, listed with the waiting backlog, and joins the back of its delivery backlog once that time passes.

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>",
      "content_blocks": "<content_blocks>",
      "orgID": "<orgID>",
      "projectID": "<projectID>"
    },
    "name": "agents_input"
  }
}

Input Schema

NameRequiredDescriptionDefault
actorNoExternal actor to attribute this input to, upserted by (provider_tenant_id, provider_user_id) atomically with the input; 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 input has no actor attribution.
orgIDYesOrganization ID (org_...).
agentIDYesAgent ID (agt_...).
projectIDYesProject ID (proj_...).
delivery_modeNoqueued (default) waits until the agent is free; steering reaches it at its next model call.
scheduled_forNoFuture time at which the message joins the agent's backlog. Until then the input has state scheduled and can be canceled. An agent holds at most 25 scheduled inputs. Delivery follows within about a minute of this time, using delivery_mode. Must be in the future and at most 90 days away.
content_blocksYesAt most 20 inline media blocks per submission, each holding up to 10 MiB of decoded media and up to 24 MiB decoded across the submission. Non-media blocks may hold up to 1 MiB combined. The whole request body is capped at 48 MiB.
cancel_open_interactionsNoOnly valid when delivery_mode is steering and scheduled_for is omitted. When true, atomically cancels open interactions associated with the current turn's unfinished tool calls before creating the steering input. Their parent tool calls complete as canceled; the turn, runtime, and unrelated tool calls are preserved.

Output Schema

NameRequiredDescriptionDefault
agent_inputYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv0.1.11
    • changedInput schema / $defs / InlineMediaContentBlock / description
      Previous value: -"Files that pass validation are stored as artifacts. Model input always includes the artifact ID, whether or not the file contents can be sent directly. Text media must contain valid UTF-8 and is sent as text. Images and PDFs are sent directly when supported by the configured provider and model; unsupported combinations are rejected. Other binary documents are sent directly only to OpenAI Responses models with file input support. Chat Completions and Anthropic Messages receive the artifact ID and the filename, if provided, instead of the contents of those documents."New value: +"Files that pass validation are stored as artifacts. Model input always includes the artifact ID, whether or not the file contents can be sent directly. Text media must contain valid UTF-8 and is sent as text. Images and PDFs are sent directly when supported by the configured provider and model; unsupported combinations are rejected. Other binary documents are sent directly only to OpenAI Responses models with file input support. Chat Completions and Anthropic Messages receive the artifact ID and the filename, if provided, instead of the contents of those documents. Audio (WAV, MP3, M4A, FLAC) is sent directly only to Chat Completions models whose input modalities explicitly include audio, and M4A and FLAC only through OpenRouter; otherwise the model receives the artifact ID and the filename."
    • changedInput schema / $defs / InlineMediaContentBlock / properties / media_type / enum
      Previous value: -[
      -  "image/png",
      -  "image/jpeg",
      -  "image/gif",
      -  "image/webp",
      -  "application/pdf",
      -  "text/plain",
      -  "text/markdown",
      -  "text/csv",
      -  "text/tab-separated-values",
      -  "text/x-iif",
      -  "application/msword",
      -  "application/rtf",
      -  "application/vnd.oasis.opendocument.text",
      -  "application/vnd.apple.pages",
      -  "application/vnd.apple.keynote",
      -  "application/vnd.apple.iwork",
      -  "application/vnd.ms-powerpoint",
      -  "application/vnd.ms-excel",
      -  "application/vnd.openxmlformats-officedocument.wordprocessingml.document",
      -  "application/vnd.openxmlformats-officedocument.presentationml.presentation",
      -  "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"
      -]New value: +[
      +  "image/png",
      +  "image/jpeg",
      +  "image/gif",
      +  "image/webp",
      +  "audio/wav",
      +  "audio/mpeg",
      +  "audio/mp4",
      +  "audio/flac",
      +  "application/pdf",
      +  "text/plain",
      +  "text/markdown",
      +  "text/csv",
      +  "text/tab-separated-values",
      +  "text/x-iif",
      +  "application/msword",
      +  "application/rtf",
      +  "application/vnd.oasis.opendocument.text",
      +  "application/vnd.apple.pages",
      +  "application/vnd.apple.keynote",
      +  "application/vnd.apple.iwork",
      +  "application/vnd.ms-powerpoint",
      +  "application/vnd.ms-excel",
      +  "application/vnd.openxmlformats-officedocument.wordprocessingml.document",
      +  "application/vnd.openxmlformats-officedocument.presentationml.presentation",
      +  "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"
      +]
  2. Changed23 schema fields changedv0.1.10
    • changedInput schema / $defs / ContentBlockMetadata / description
      Previous value: -"Arbitrary key-value metadata. Maximum 16 pairs, keys up to 64 characters, values must be strings of up to 512 characters. Keys beginning with `omnara_` are reserved for Omnara and may affect product behavior; use them only when intentionally invoking Omnara-defined behavior."New value: +"Arbitrary key-value labels. Keys beginning with `omnara_` are reserved for Omnara and may affect product behavior; use them only when intentionally invoking Omnara-defined behavior."
    • removedInput schema / $defs / ContentBlockMetadata / x-go-type
      Removed value: -"resourcemeta.Metadata"
    • removedInput schema / $defs / ContentBlockMetadata / x-go-type-import
      Removed value: -{
      -  "path": "github.com/omnara-ai/omnara/internal/resourcemeta"
      -}
    • removedInput schema / $defs / ContentBlockMetadata / x-go-type-skip-optional-pointer
      Removed value: -true
    • addedInput schema / $defs / InlineMediaContentBlock / properties / filename / description
      Added value: +"Filename saved with the stored file and shown to models that can't read the file directly."
    • addedInput schema / $defs / InlineMediaContentBlock / properties / media_type / description
      Added value: +"MIME type of the file in data."
    • addedInput schema / $defs / InlineMediaContentBlock / properties / metadata / description
      Added value: +"Key-value metadata. omnara_ keys are reserved."
    • addedInput schema / $defs / InlineMediaContentBlock / properties / type / description
      Added value: +"media: a base64-encoded file in data."
    • 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 / $defs / TextContentBlock / properties / metadata / description
      Added value: +"Key-value metadata. omnara_ keys are reserved."
    • addedInput schema / $defs / TextContentBlock / properties / text / description
      Added value: +"Block text: the message in agent inputs, or text from the model or a tool in events."
    • addedInput schema / $defs / TextContentBlock / properties / type / description
      Added value: +"text: a plain-text block."
    • 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."
    • changedInput schema / properties / cancel_open_interactions / description
      Previous value: -"Only valid when delivery_mode is steering. When true, atomically cancels open interactions associated with the current turn's unfinished tool calls before creating the steering input. Their parent tool calls complete as canceled; the turn, runtime, and unrelated tool calls are preserved."New value: +"Only valid when delivery_mode is steering and scheduled_for is omitted. When true, atomically cancels open interactions associated with the current turn's unfinished tool calls before creating the steering input. Their parent tool calls complete as canceled; the turn, runtime, and unrelated tool calls are preserved."
    • addedInput schema / properties / delivery_mode / description
      Added value: +"queued (default) waits until the agent is free; steering reaches it at its next model call."
    • addedInput schema / properties / scheduled_for
      Added value: +{
      +  "description": "Future time at which the message joins the agent's backlog. Until then the input has state scheduled and can be canceled. An agent holds at most 25 scheduled inputs. Delivery follows within about a minute of this time, using delivery_mode. Must be in the future and at most 90 days away.",
      +  "format": "date-time",
      +  "type": "string"
      +}
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "$defs": {
      +    "ActorID": {
      +      "pattern": "^actr_[a-z2-7]{26}$",
      +      "type": "string"
      +    },
      +    "AgentID": {
      +      "pattern": "^agt_[a-z2-7]{26}$",
      +      "type": "string"
      +    },
      +    "AgentInput": {
      +      "properties": {
      +        "actor_id": {
      +          "$ref": "#/$defs/ActorID",
      +          "description": "Actor this input is attributed to. Absent when the input has no actor attribution."
      +        },
      +        "agent_id": {
      +          "$ref": "#/$defs/AgentID"
      +        },
      +        "content_blocks": {
      +          "items": {
      +            "$ref": "#/$defs/AgentInputContentBlock"
      +          },
      +          "type": "array"
      +        },
      +        "delivery_mode": {
      +          "$ref": "#/$defs/AgentInputDeliveryMode"
      +        },
      +        "id": {
      +          "$ref": "#/$defs/AgentInputID"
      +        },
      +        "input_idempotency_key": {
      +          "description": "Idempotency key supplied when this content input was created. Absent for other input kinds.",
      +          "type": "string"
      +        },
      +        "input_kind": {
      +          "$ref": "#/$defs/AgentInputKind"
      +        },
      +        "queued_at": {
      +          "$ref": "#/$defs/Timestamp"
      +        },
      +        "scheduled_for": {
      +          "$ref": "#/$defs/Timestamp",
      +          "description": "Time this input was scheduled to join the agent's backlog. Present only for content inputs created with scheduled_for; it stays set after the input is released."
      +        },
      +        "state": {
      +          "$ref": "#/$defs/AgentInputState"
      +        }
      +      },
      +      "required": [
      +        "id",
      +        "agent_id",
      +        "state",
      +        "delivery_mode",
      +        "input_kind",
      +        "queued_at"
      +      ],
      +      "type": "object"
      +    },
      +    "AgentInputContentBlock": {
      +      "discriminator": {
      +        "mapping": {
      +          "media_ref": "#/$defs/MediaRefContentBlock",
      +          "text": "#/$defs/TextContentBlock"
      +        },
      +        "propertyName": "type"
      +      },
      +      "oneOf": [
      +        {
      +          "$ref": "#/$defs/TextContentBlock"
      +        },
      +        {
      +          "$ref": "#/$defs/MediaRefContentBlock"
      +        }
      +      ]
      +    },
      +    "AgentInputDeliveryMode": {
      +      "enum": [
      +        "queued",
      +        "steering",
      +        "immediate"
      +      ],
      +      "type": "string"
      +    },
      +    "AgentInputID": {
      +      "pattern": "^ain_[a-z2-7]{26}$",
      +      "type": "string"
      +    },
      +    "AgentInputKind": {
      +      "enum": [
      +        "content",
      +        "control",
      +        "interaction_response",
      +        "config_change"
      +      ],
      +      "type": "string"
      +    },
      +    "AgentInputState": {
      +      "description": "scheduled while a content input waits for its scheduled_for time, received once it is waiting for the agent, resolved when the agent has processed it, or canceled.",
      +      "enum": [
      +        "scheduled",
      +        "received",
      +        "resolved",
      +        "canceled"
      +      ],
      +      "type": "string"
      +    },
      +    "ArtifactID": {
      +      "pattern": "^art_[a-z2-7]{26}$",
      +      "type": "string"
      +    },
      +    "ContentBlockMetadata": {
      +      "additionalProperties": {
      +        "maxLength": 512,
      +        "type": "string"
      +      },
      +      "description": "Arbitrary key-value labels. Keys beginning with `omnara_` are reserved for Omnara and may affect product behavior; use them only when intentionally invoking Omnara-defined behavior.",
      +      "maxProperties": 16,
      +      "propertyNames": {
      +        "maxLength": 64,
      +        "minLength": 1
      +      },
      +      "type": "object"
      +    },
      +    "MediaRefContentBlock": {
      +      "properties": {
      +        "artifact_id": {
      +          "$ref": "#/$defs/ArtifactID"
      +        },
      +        "exclude_from_model_context": {
      +          "description": "Whether the referenced artifact is excluded from later model context.",
      +          "type": "boolean"
      +        },
      +        "metadata": {
      +          "$ref": "#/$defs/ContentBlockMetadata"
      +        },
      +        "type": {
      +          "enum": [
      +            "media_ref"
      +          ],
      +          "type": "string"
      +        }
      +      },
      +      "required": [
      +        "type",
      +        "artifact_id"
      +      ],
      +      "type": "object"
      +    },
      +    "TextContentBlock": {
      +      "properties": {
      +        "metadata": {
      +          "$ref": "#/$defs/ContentBlockMetadata",
      +          "description": "Key-value metadata. omnara_ keys are reserved."
      +        },
      +        "text": {
      +          "description": "Block text: the message in agent inputs, or text from the model or a tool in events.",
      +          "type": "string"
      +        },
      +        "type": {
      +          "description": "text: a plain-text block.",
      +          "enum": [
      +            "text"
      +          ],
      +          "type": "string"
      +        }
      +      },
      +      "required": [
      +        "type",
      +        "text"
      +      ],
      +      "type": "object"
      +    },
      +    "Timestamp": {
      +      "format": "date-time",
      +      "type": "string"
      +    }
      +  },
      +  "properties": {
      +    "agent_input": {
      +      "$ref": "#/$defs/AgentInput"
      +    }
      +  },
      +  "required": [
      +    "agent_input"
      +  ],
      +  "type": "object"
      +}
  3. 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 this input to, upserted by (provider_tenant_id, provider_user_id) atomically with the input; 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 input has no actor attribution."
  4. 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_...)."
  5. First observed

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false, idempotentHint=false, openWorldHint=true and destructiveHint=false, so the mutation and safety profile is largely covered. The description adds real delivery semantics beyond that — queued vs steering timing, scheduling state, backlog placement, and cancellation of scheduled inputs — which is genuine value. However, it never states that repeated calls are not deduplicated (non-idempotent) or whether a rejected/duplicate send has side effects.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Three sentences, front-loaded with the core action and return, then mode selection, then scheduling. Every sentence carries information, though the final sentence is a long compound clause that could be split for faster scanning.

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 no explanation, and the input schema richly documents content blocks, limits, and actor semantics. The description supplies the missing behavioral picture for delivery timing and scheduling state, leaving only idempotency/duplicate-send behavior unaddressed for a non-idempotent mutation tool.

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 coverage is 100%, so the baseline is 3; every parameter, including delivery_mode, scheduled_for, actor and cancel_open_interactions, is already documented in the schema. The description reinforces the meaning of delivery_mode and scheduled_for but adds no syntax, format, or constraint detail beyond what the schema states.

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+resource ("Sends a message to an agent") and adds what it returns ("the stored input"), which is more than a restatement of the title. It does not explicitly contrast itself with sibling tools such as agents_launch or agents_cancel, so an agent must infer the boundary, but the delivery-mode framing makes its role distinguishable.

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?

Gives clear selection guidance among its own modes: queued is the default that waits for the agent to be free, steering reaches it at the next model call, and scheduled_for defers delivery. It stops short of saying when to prefer this tool over a sibling (e.g. agent launch vs. sending input), so no explicit when-not guidance is present.

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