Skip to main content
Glama

Get agent

agents_get
Read-onlyIdempotent

Returns one agent's state, model, profile, current config ID, activity (running, waiting_on_interaction, idle, or archived), attached machines, and MCP connection states. The conversation isn't included.

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_get"
  }
}

Input Schema

NameRequiredDescriptionDefault
orgIDYesOrganization ID (org_...).
agentIDYesAgent ID (agt_...).
projectIDYesProject ID (proj_...).

Output Schema

NameRequiredDescriptionDefault
agentYes
machine_idsYesMachines currently attached to the agent, in binding creation order.
mcp_connectionsYesThe agent's MCP server connections, ordered by server key.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • addedOutput schema / $defs / UsageCostTotals / properties / effective_usd
      Added value: +{
      +  "description": "Decimal sum in USD of the cost Omnara counts for each tallied model call: the model's own pricing when set, otherwise the provider-reported cost, otherwise a list-price estimate. Calls that could not be priced contribute nothing; compare model_calls_with_effective_cost against model_calls to see how complete the figure is.",
      +  "pattern": "^(0|[1-9][0-9]*)(\\.[0-9]+)?$",
      +  "type": "string"
      +}
    • addedOutput schema / $defs / UsageCostTotals / properties / model_calls_with_effective_cost
      Added value: +{
      +  "format": "int64",
      +  "minimum": 0,
      +  "type": "integer"
      +}
    • changedOutput schema / $defs / UsageCostTotals / required
      Previous value: -[
      -  "provider_reported_usd",
      -  "model_calls_with_reported_cost"
      -]New value: +[
      +  "provider_reported_usd",
      +  "model_calls_with_reported_cost",
      +  "effective_usd",
      +  "model_calls_with_effective_cost"
      +]
  2. Changed1 schema field changed
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "$defs": {
      +    "Agent": {
      +      "properties": {
      +        "activity": {
      +          "$ref": "#/$defs/AgentActivity",
      +          "description": "Current activity, present on list and get responses."
      +        },
      +        "agent_profile_id": {
      +          "$ref": "#/$defs/AgentProfileID"
      +        },
      +        "archived_at": {
      +          "$ref": "#/$defs/Timestamp"
      +        },
      +        "created_at": {
      +          "$ref": "#/$defs/Timestamp"
      +        },
      +        "current_config_id": {
      +          "$ref": "#/$defs/AgentConfigID"
      +        },
      +        "id": {
      +          "$ref": "#/$defs/AgentID"
      +        },
      +        "integration_target": {
      +          "$ref": "#/$defs/IntegrationTarget",
      +          "description": "Selected question/approval destination. Automatic mode updates it when content inputs are admitted. Prompts use it only while the integration and handler remain eligible. It is not launch provenance or permission to post."
      +        },
      +        "model": {
      +          "$ref": "#/$defs/AgentModel"
      +        },
      +        "name": {
      +          "$ref": "#/$defs/AgentName"
      +        },
      +        "org_id": {
      +          "$ref": "#/$defs/OrganizationID"
      +        },
      +        "parent_agent_id": {
      +          "$ref": "#/$defs/AgentID",
      +          "description": "Set when this agent is a subagent spawned by another agent."
      +        },
      +        "project_id": {
      +          "$ref": "#/$defs/ProjectID"
      +        },
      +        "state": {
      +          "enum": [
      +            "active",
      +            "archived"
      +          ],
      +          "type": "string"
      +        },
      +        "subagent_key": {
      +          "description": "The `subagents` key this agent was spawned from.",
      +          "type": "string"
      +        },
      +        "updated_at": {
      +          "$ref": "#/$defs/Timestamp"
      +        },
      +        "usage": {
      +          "$ref": "#/$defs/UsageTotals",
      +          "description": "All-time model usage by the agent and its subagents. Present when the list was requested with `include_usage`."
      +        }
      +      },
      +      "required": [
      +        "id",
      +        "org_id",
      +        "project_id",
      +        "state",
      +        "name",
      +        "created_at",
      +        "updated_at"
      +      ],
      +      "type": "object"
      +    },
      +    "AgentActivity": {
      +      "properties": {
      +        "last_activity_at": {
      +          "$ref": "#/$defs/Timestamp",
      +          "description": "When the agent's latest event was recorded, or its creation time before any event."
      +        },
      +        "open_interactions": {
      +          "$ref": "#/$defs/AgentOpenInteractions"
      +        },
      +        "running_processes": {
      +          "$ref": "#/$defs/AgentRunningProcesses"
      +        },
      +        "state": {
      +          "$ref": "#/$defs/AgentActivityState"
      +        },
      +        "working_subagents": {
      +          "$ref": "#/$defs/AgentWorkingSubagents"
      +        }
      +      },
      +      "required": [
      +        "state",
      +        "last_activity_at",
      +        "open_interactions",
      +        "running_processes",
      +        "working_subagents"
      +      ],
      +      "type": "object"
      +    },
      +    "AgentActivityState": {
      +      "description": "running while the agent has work in progress, which includes a custom tool call awaiting its result; waiting_on_interaction while it has an open question or permission request; idle otherwise; and archived once the agent is archived. Running processes and working subagents do not change it; see running_processes and working_subagents.",
      +      "enum": [
      +        "running",
      +        "idle",
      +        "waiting_on_interaction",
      +        "archived"
      +      ],
      +      "type": "string"
      +    },
      +    "AgentConfigID": {
      +      "description": "Agent config ID (acfg_...).",
      +      "pattern": "^acfg_[a-z2-7]{26}$",
      +      "type": "string"
      +    },
      +    "AgentID": {
      +      "pattern": "^agt_[a-z2-7]{26}$",
      +      "type": "string"
      +    },
      +    "AgentMCPConnection": {
      +      "properties": {
      +        "created_at": {
      +          "$ref": "#/$defs/Timestamp"
      +        },
      +        "endpoint_url": {
      +          "type": "string"
      +        },
      +        "initialize_error": {
      +          "type": "string"
      +        },
      +        "protocol_version": {
      +          "type": "string"
      +        },
      +        "server_key": {
      +          "type": "string"
      +        },
      +        "state": {
      +          "enum": [
      +            "initializing",
      +            "ready",
      +            "failed",
      +            "expired"
      +          ],
      +          "type": "string"
      +        },
      +        "updated_at": {
      +          "$ref": "#/$defs/Timestamp"
      +        }
      +      },
      +      "required": [
      +        "server_key",
      +        "endpoint_url",
      +        "state",
      +        "initialize_error",
      +        "created_at",
      +        "updated_at"
      +      ],
      +      "type": "object"
      +    },
      +    "AgentModel": {
      +      "properties": {
      +        "name": {
      +          "$ref": "#/$defs/ResourceName"
      +        },
      +        "provider_config": {
      +          "$ref": "#/$defs/ResourceName"
      +        }
      +      },
      +      "required": [
      +        "provider_config",
      +        "name"
      +      ],
      +      "type": "object"
      +    },
      +    "AgentName": {
      +      "description": "Agent name. Empty means the agent is unnamed; non-empty values use the ResourceName policy.",
      +      "maxLength": 64,
      +      "type": "string"
      +    },
      +    "AgentOpenInteractions": {
      +      "description": "The agent's open questions and permission requests.",
      +      "properties": {
      +        "permission_request_count": {
      +          "minimum": 0,
      +          "type": "integer"
      +        },
      +        "question_count": {
      +          "minimum": 0,
      +          "type": "integer"
      +        }
      +      },
      +      "required": [
      +        "question_count",
      +        "permission_request_count"
      +      ],
      +      "type": "object"
      +    },
      +    "AgentProfileID": {
      +      "pattern": "^aprf_[a-z2-7]{26}$",
      +      "type": "string"
      +    },
      +    "AgentRunningProcesses": {
      +      "description": "Commands the agent left running that will send it a message when they end. process_ids lists the first 20, oldest first.",
      +      "properties": {
      +        "count": {
      +          "minimum": 0,
      +          "type": "integer"
      +        },
      +        "process_ids": {
      +          "items": {
      +            "$ref": "#/$defs/ProcessID"
      +          },
      +          "maxItems": 20,
      +          "type": "array"
      +        }
      +      },
      +      "required": [
      +        "count",
      +        "process_ids"
      +      ],
      +      "type": "object"
      +    },
      +    "AgentWorkingSubagents": {
      +      "description": "Active subagents that are still working, including through their own subagents or processes. agent_ids lists the first 20, oldest first.",
      +      "properties": {
      +        "agent_ids": {
      +          "items": {
      +            "$ref": "#/$defs/AgentID"
      +          },
      +          "maxItems": 20,
      +          "type": "array"
      +        },
      +        "count": {
      +          "minimum": 0,
      +          "type": "integer"
      +        }
      +      },
      +      "required": [
      +        "count",
      +        "agent_ids"
      +      ],
      +      "type": "object"
      +    },
      +    "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"
      +    },
      +    "IntegrationTarget": {
      +      "properties": {
      +        "conversation": {
      +          "$ref": "#/$defs/IntegrationConversation"
      +        },
      +        "display_name": {
      +          "type": "string"
      +        },
      +        "provider": {
      +          "type": "string"
      +        },
      +        "provider_uri": {
      +          "format": "uri",
      +          "type": "string"
      +        }
      +      },
      +      "required": [
      +        "provider",
      +        "conversation",
      +        "display_name"
      +      ],
      +      "type": "object"
      +    },
      +    "MachineID": {
      +      "description": "Machine ID (mch_...).",
      +      "pattern": "^mch_[a-z2-7]{26}$",
      +      "type": "string"
      +    },
      +    "OrganizationID": {
      +      "pattern": "^org_[a-z2-7]{26}$",
      +      "type": "string"
      +    },
      +    "ProcessID": {
      +      "pattern": "^prc_[a-z2-7]{26}$",
      +      "type": "string"
      +    },
      +    "ProjectID": {
      +      "description": "Project ID (proj_...).",
      +      "pattern": "^proj_[a-z2-7]{26}$",
      +      "type": "string"
      +    },
      +    "ResourceName": {
      +      "description": "Human-readable name. Spaces and punctuation are allowed; leading or trailing whitespace and invisible or control characters are not.",
      +      "maxLength": 64,
      +      "minLength": 1,
      +      "type": "string"
      +    },
      +    "Timestamp": {
      +      "format": "date-time",
      +      "type": "string"
      +    },
      +    "UsageCostTotals": {
      +      "properties": {
      +        "model_calls_with_reported_cost": {
      +          "format": "int64",
      +          "minimum": 0,
      +          "type": "integer"
      +        },
      +        "provider_reported_usd": {
      +          "description": "Exact decimal sum in USD of the costs the provider reported for the tallied model calls. Calls whose provider reported no cost contribute nothing; compare model_calls_with_reported_cost against model_calls to see how complete the figure is.",
      +          "pattern": "^(0|[1-9][0-9]*)(\\.[0-9]+)?$",
      +          "type": "string"
      +        }
      +      },
      +      "required": [
      +        "provider_reported_usd",
      +        "model_calls_with_reported_cost"
      +      ],
      +      "type": "object"
      +    },
      +    "UsageTokenTotals": {
      +      "description": "Summed token counts across the tallied model calls. Input totals are the sum of uncached, cache-read, and cache-write tokens; output totals include reasoning tokens.",
      +      "properties": {
      +        "cache_read_input_tokens": {
      +          "format": "int64",
      +          "minimum": 0,
      +          "type": "integer"
      +        },
      +        "cache_write_input_tokens": {
      +          "format": "int64",
      +          "minimum": 0,
      +          "type": "integer"
      +        },
      +        "input_tokens_total": {
      +          "format": "int64",
      +          "minimum": 0,
      +          "type": "integer"
      +        },
      +        "output_tokens_total": {
      +          "format": "int64",
      +          "minimum": 0,
      +          "type": "integer"
      +        },
      +        "reasoning_output_tokens": {
      +          "format": "int64",
      +          "minimum": 0,
      +          "type": "integer"
      +        },
      +        "uncached_input_tokens": {
      +          "format": "int64",
      +          "minimum": 0,
      +          "type": "integer"
      +        }
      +      },
      +      "required": [
      +        "input_tokens_total",
      +        "uncached_input_tokens",
      +        "cache_read_input_tokens",
      +        "cache_write_input_tokens",
      +        "output_tokens_total",
      +        "reasoning_output_tokens"
      +      ],
      +      "type": "object"
      +    },
      +    "UsageTotals": {
      +      "properties": {
      +        "cost": {
      +          "$ref": "#/$defs/UsageCostTotals"
      +        },
      +        "model_calls": {
      +          "description": "Model calls that recorded token usage or a provider-reported cost.",
      +          "format": "int64",
      +          "minimum": 0,
      +          "type": "integer"
      +        },
      +        "tokens": {
      +          "$ref": "#/$defs/UsageTokenTotals"
      +        }
      +      },
      +      "required": [
      +        "model_calls",
      +        "tokens",
      +        "cost"
      +      ],
      +      "type": "object"
      +    }
      +  },
      +  "properties": {
      +    "agent": {
      +      "$ref": "#/$defs/Agent"
      +    },
      +    "machine_ids": {
      +      "description": "Machines currently attached to the agent, in binding creation order.",
      +      "items": {
      +        "$ref": "#/$defs/MachineID"
      +      },
      +      "type": "array"
      +    },
      +    "mcp_connections": {
      +      "description": "The agent's MCP server connections, ordered by server key.",
      +      "items": {
      +        "$ref": "#/$defs/AgentMCPConnection"
      +      },
      +      "type": "array"
      +    }
      +  },
      +  "required": [
      +    "agent",
      +    "machine_ids",
      +    "mcp_connections"
      +  ],
      +  "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, destructiveHint=false and openWorldHint=false, so safety is covered. The description adds genuine context beyond that: the exact set of fields returned and the explicit exclusion that conversation content is not included, which prevents a common mis-expectation.

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 return contents and closed by the one exclusion that matters. No filler, no restatement of the title.

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 single-entity read tool with full schema coverage, annotations, and an output schema, this is sufficient — an agent can call it correctly without more. The field enumeration slightly duplicates what the output schema already declares, so it adds reassurance rather than new completeness.

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% and each of the three IDs has a pattern plus an inline description, so the schema carries the burden. The description adds nothing about the IDs (e.g. scoping or lookup semantics), so baseline 3 applies.

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 ("Returns one agent's") and enumerates the returned facets — state, model, profile, config ID, activity, machines, MCP connections. The singular "one agent" implicitly distinguishes it from the list/archive siblings, but no sibling is named 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?

Usage is only implied: an agent would infer this is the tool for fetching a single agent's details. There is no explicit when-to-use, no pointer to agents_list or agents_events_list as alternatives, and no stated prerequisites.

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.