Skip to main content
Glama

Get agent config

configs_get
Read-onlyIdempotent

Retrieves a single agent configuration by ID for an organization and project, returning its compiled definition with names resolved to IDs and its saved source when available.

Instructions

Returns one agent config: its compiled definition with names resolved to IDs, and its source if it was saved with one. Configs Omnara derives on its own, such as those for subagents and integration launches, have no source.

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": {
      "agentConfigID": "<agentConfigID>",
      "orgID": "<orgID>",
      "projectID": "<projectID>"
    },
    "name": "configs_get"
  }
}

Input Schema

NameRequiredDescriptionDefault
orgIDYesOrganization ID (org_...).
projectIDYesProject ID (proj_...).
agentConfigIDYesAgent config ID (acfg_...).

Output Schema

NameRequiredDescriptionDefault
idYes
modelYes
org_idYes
sourceNoSaved source text, exactly as sent.
created_atYes
project_idYes
source_formatNo
instruction_hashNo
compiled_definitionYes
effective_definition_hashYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.1.10
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "$defs": {
      +    "AgentConfigID": {
      +      "description": "Agent config ID (acfg_...).",
      +      "pattern": "^acfg_[a-z2-7]{26}$",
      +      "type": "string"
      +    },
      +    "AgentConfigModel": {
      +      "properties": {
      +        "api_format": {
      +          "$ref": "#/$defs/ModelAPIFormat"
      +        },
      +        "api_variant": {
      +          "$ref": "#/$defs/ModelProviderAPIVariantResponse"
      +        },
      +        "configured_model_id": {
      +          "$ref": "#/$defs/ConfiguredModelID"
      +        },
      +        "context_window_tokens": {
      +          "description": "Effective context budget for input and output tokens after model, project, and agent settings are applied. Triggers compaction when estimated input exceeds the remaining budget after output and safety reserves. The turn fails if compaction cannot make it fit.",
      +          "type": "integer"
      +        },
      +        "current_revision_id": {
      +          "$ref": "#/$defs/ConfiguredModelRevisionID"
      +        },
      +        "default_cache_retention": {
      +          "$ref": "#/$defs/ModelCacheRetention"
      +        },
      +        "default_max_output_tokens": {
      +          "description": "Effective per-request output-token cap sent to the provider.",
      +          "type": [
      +            "integer",
      +            "null"
      +          ]
      +        },
      +        "default_reasoning_effort": {
      +          "type": "string"
      +        },
      +        "input_modalities": {
      +          "items": {
      +            "type": "string"
      +          },
      +          "type": "array"
      +        },
      +        "max_output_tokens": {
      +          "description": "Effective known output-token ceiling after model and project settings, or null when unknown.",
      +          "type": [
      +            "integer",
      +            "null"
      +          ]
      +        },
      +        "name": {
      +          "$ref": "#/$defs/ResourceName",
      +          "description": "Configured model name selected by this agent config, rendered from the current configured model record."
      +        },
      +        "output_modalities": {
      +          "items": {
      +            "type": "string"
      +          },
      +          "type": "array"
      +        },
      +        "provider_config": {
      +          "$ref": "#/$defs/ResourceName"
      +        },
      +        "provider_model_slug": {
      +          "description": "Exact provider model slug on the configured model's current revision at response time.",
      +          "type": "string"
      +        },
      +        "supported_reasoning_efforts": {
      +          "items": {
      +            "type": "string"
      +          },
      +          "type": "array"
      +        },
      +        "supports_reasoning": {
      +          "type": "boolean"
      +        },
      +        "supports_tools": {
      +          "type": "boolean"
      +        }
      +      },
      +      "required": [
      +        "provider_config",
      +        "name",
      +        "provider_model_slug",
      +        "configured_model_id",
      +        "current_revision_id",
      +        "api_format",
      +        "api_variant",
      +        "context_window_tokens",
      +        "max_output_tokens",
      +        "default_cache_retention",
      +        "supports_tools",
      +        "supports_reasoning",
      +        "default_reasoning_effort",
      +        "supported_reasoning_efforts",
      +        "input_modalities",
      +        "output_modalities"
      +      ],
      +      "type": "object"
      +    },
      +    "AgentProfileID": {
      +      "pattern": "^aprf_[a-z2-7]{26}$",
      +      "type": "string"
      +    },
      +    "CompiledAgentConfig": {
      +      "description": "Read-only saved compiled configuration, including default tools and derived subagent overrides.",
      +      "properties": {
      +        "git_credentials": {
      +          "$ref": "#/$defs/CompiledGitCredentials"
      +        },
      +        "instruction": {
      +          "type": "string"
      +        },
      +        "interaction_handlers": {
      +          "additionalProperties": {
      +            "$ref": "#/$defs/CompiledIntegrationCapability"
      +          },
      +          "type": "object"
      +        },
      +        "machine_sources": {
      +          "items": {
      +            "$ref": "#/$defs/CompiledMachineSource"
      +          },
      +          "type": "array"
      +        },
      +        "max_depth": {
      +          "type": "integer"
      +        },
      +        "max_subagents": {
      +          "type": "integer"
      +        },
      +        "mcp": {
      +          "additionalProperties": {
      +            "$ref": "#/$defs/CompiledMCPServer"
      +          },
      +          "type": "object"
      +        },
      +        "memory_stores": {
      +          "items": {
      +            "$ref": "#/$defs/CompiledMemoryStore"
      +          },
      +          "type": "array"
      +        },
      +        "model": {
      +          "$ref": "#/$defs/CompiledAgentModel"
      +        },
      +        "skills": {
      +          "items": {
      +            "$ref": "#/$defs/CompiledSkill"
      +          },
      +          "type": "array"
      +        },
      +        "subagents": {
      +          "additionalProperties": {
      +            "$ref": "#/$defs/CompiledSubagent"
      +          },
      +          "type": "object"
      +        },
      +        "tools": {
      +          "additionalProperties": {
      +            "$ref": "#/$defs/CompiledTool"
      +          },
      +          "type": "object"
      +        },
      +        "version": {
      +          "type": "string"
      +        }
      +      },
      +      "required": [
      +        "instruction",
      +        "model"
      +      ],
      +      "type": "object"
      +    },
      +    "CompiledAgentModel": {
      +      "properties": {
      +        "cache_retention": {
      +          "$ref": "#/$defs/ModelCacheRetention"
      +        },
      +        "configured_model_id": {
      +          "$ref": "#/$defs/ConfiguredModelID"
      +        },
      +        "context_window_tokens": {
      +          "type": "integer"
      +        },
      +        "default_max_output_tokens": {
      +          "type": "integer"
      +        },
      +        "reasoning": {
      +          "$ref": "#/$defs/CompiledModelReasoning"
      +        }
      +      },
      +      "required": [
      +        "configured_model_id"
      +      ],
      +      "type": "object"
      +    },
      +    "CompiledGitCredentials": {
      +      "description": "Pinned GitHub integration supplying machine Git credentials, optionally limited to repositories and read-only access.",
      +      "properties": {
      +        "integration": {
      +          "$ref": "#/$defs/IntegrationName"
      +        },
      +        "integration_id": {
      +          "$ref": "#/$defs/IntegrationID"
      +        },
      +        "read_only": {
      +          "type": "boolean"
      +        },
      +        "repository_ids": {
      +          "items": {
      +            "format": "int64",
      +            "type": "integer"
      +          },
      +          "type": "array"
      +        }
      +      },
      +      "required": [
      +        "integration",
      +        "integration_id"
      +      ],
      +      "type": "object"
      +    },
      +    "CompiledIntegrationCapability": {
      +      "properties": {
      +        "integration_id": {
      +          "$ref": "#/$defs/IntegrationID"
      +        }
      +      },
      +      "required": [
      +        "integration_id"
      +      ],
      +      "type": "object"
      +    },
      +    "CompiledMCPAuth": {
      +      "discriminator": {
      +        "mapping": {
      +          "bearer": "#/$defs/CompiledMCPAuthBearer",
      +          "oauth": "#/$defs/CompiledMCPAuthOAuth",
      +          "sigv4": "#/$defs/CompiledMCPAuthSigV4"
      +        },
      +        "propertyName": "type"
      +      },
      +      "oneOf": [
      +        {
      +          "$ref": "#/$defs/CompiledMCPAuthBearer"
      +        },
      +        {
      +          "$ref": "#/$defs/CompiledMCPAuthOAuth"
      +        },
      +        {
      +          "$ref": "#/$defs/CompiledMCPAuthSigV4"
      +        }
      +      ]
      +    },
      +    "CompiledMCPAuthBearer": {
      +      "properties": {
      +        "secret_id": {
      +          "$ref": "#/$defs/SecretID"
      +        },
      +        "type": {
      +          "enum": [
      +            "bearer"
      +          ],
      +          "type": "string"
      +        }
      +      },
      +      "required": [
      +        "type",
      +        "secret_id"
      +      ],
      +      "type": "object"
      +    },
      +    "CompiledMCPAuthOAuth": {
      +      "properties": {
      +        "secret_id": {
      +          "$ref": "#/$defs/SecretID"
      +        },
      +        "type": {
      +          "enum": [
      +            "oauth"
      +          ],
      +          "type": "string"
      +        }
      +      },
      +      "required": [
      +        "type",
      +        "secret_id"
      +      ],
      +      "type": "object"
      +    },
      +    "CompiledMCPAuthSigV4": {
      +      "properties": {
      +        "region": {
      +          "minLength": 1,
      +          "type": "string"
      +        },
      +        "secret_id": {
      +          "$ref": "#/$defs/SecretID"
      +        },
      +        "service": {
      +          "minLength": 1,
      +          "type": "string"
      +        },
      +        "type": {
      +          "enum": [
      +            "sigv4"
      +          ],
      +          "type": "string"
      +        }
      +      },
      +      "required": [
      +        "type",
      +        "secret_id",
      +        "service",
      +        "region"
      +      ],
      +      "type": "object"
      +    },
      +    "CompiledMCPServer": {
      +      "properties": {
      +        "auth": {
      +          "$ref": "#/$defs/CompiledMCPAuth"
      +        },
      +        "default_enabled": {
      +          "type": "boolean"
      +        },
      +        "deferred": {
      +          "type": "boolean"
      +        },
      +        "permission": {
      +          "$ref": "#/$defs/ToolPermissionSelection"
      +        },
      +        "tools": {
      +          "additionalProperties": {
      +            "$ref": "#/$defs/CompiledMCPTool"
      +          },
      +          "type": "object"
      +        },
      +        "url": {
      +          "type": "string"
      +        }
      +      },
      +      "required": [
      +        "url",
      +        "default_enabled",
      +        "permission"
      +      ],
      +      "type": "object"
      +    },
      +    "CompiledMCPTool": {
      +      "properties": {
      +        "deferred": {
      +          "type": "boolean"
      +        },
      +        "enabled": {
      +          "type": "boolean"
      +        },
      +        "permission": {
      +          "$ref": "#/$defs/ToolPermissionSelection"
      +        }
      +      },
      +      "type": "object"
      +    },
      +    "CompiledMachineSource": {
      +      "properties": {
      +        "cwd": {
      +          "type": "string"
      +        },
      +        "delete_after_idle_minutes": {
      +          "type": "integer"
      +        },
      +        "description": {
      +          "type": "string"
      +        },
      +        "env_overlay": {
      +          "additionalProperties": {
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "type": "object"
      +        },
      +        "initial_num_machines": {
      +          "type": "integer"
      +        },
      +        "machine_cpu": {
      +          "type": "integer"
      +        },
      +        "machine_id": {
      +          "$ref": "#/$defs/MachineID"
      +        },
      +        "machine_memory_mb": {
      +          "type": "integer"
      +        },
      +        "machine_pool_id": {
      +          "$ref": "#/$defs/MachinePoolID"
      +        },
      +        "machine_provider_options_overlay": {
      +          "additionalProperties": true,
      +          "type": "object"
      +        },
      +        "max_machines": {
      +          "type": "integer"
      +        },
      +        "secret_env_overlay": {
      +          "additionalProperties": {
      +            "oneOf": [
      +              {
      +                "$ref": "#/$defs/SecretID"
      +              },
      +              {
      +                "type": "null"
      +              }
      +            ]
      +          },
      +          "type": "object"
      +        }
      +      },
      +      "type": "object"
      +    },
      +    "CompiledMemoryStore": {
      +      "properties": {
      +        "access": {
      +          "$ref": "#/$defs/MemoryStoreAccess"
      +        },
      +        "id": {
      +          "$ref": "#/$defs/MemoryStoreID"
      +        }
      +      },
      +      "required": [
      +        "id",
      +        "access"
      +      ],
      +      "type": "object"
      +    },
      +    "CompiledModelReasoning": {
      +      "properties": {
      +        "effort": {
      +          "type": "string"
      +        }
      +      },
      +      "required": [
      +        "effort"
      +      ],
      +      "type": "object"
      +    },
      +    "CompiledProfileSubagent": {
      +      "properties": {
      +        "archive_after_idle_minutes": {
      +          "type": "integer"
      +        },
      +        "description": {
      +          "type": "string"
      +        },
      +        "instruction_append": {
      +          "type": "string"
      +        },
      +        "max_instances": {
      +          "type": "integer"
      +        },
      +        "model": {
      +          "$ref": "#/$defs/CompiledSubagentModel"
      +        },
      +        "profile_id": {
      +          "$ref": "#/$defs/AgentProfileID"
      +        },
      +        "type": {
      +          "enum": [
      +            "profile"
      +          ],
      +          "type": "string"
      +        }
      +      },
      +      "required": [
      +        "type",
      +        "profile_id"
      +      ],
      +      "type": "object"
      +    },
      +    "CompiledSelfSubagent": {
      +      "properties": {
      +        "archive_after_idle_minutes": {
      +          "type": "integer"
      +        },
      +        "description": {
      +          "type": "string"
      +        },
      +        "instruction_append": {
      +          "type": "string"
      +        },
      +        "max_instances": {
      +          "type": "integer"
      +        },
      +        "model": {
      +          "$ref": "#/$defs/CompiledSubagentModel"
      +        },
      +        "type": {
      +          "enum": [
      +            "self"
      +          ],
      +          "type": "string"
      +        }
      +      },
      +      "required": [
      +        "type"
      +      ],
      +      "type": "object"
      +    },
      +    "CompiledSkill": {
      +      "properties": {
      +        "id": {
      +          "$ref": "#/$defs/SkillID"
      +        }
      +      },
      +      "required": [
      +        "id"
      +      ],
      +      "type": "object"
      +    },
      +    "CompiledSubagent": {
      +      "discriminator": {
      +        "mapping": {
      +          "profile": "#/$defs/CompiledProfileSubagent",
      +          "self": "#/$defs/CompiledSelfSubagent"
      +        },
      +        "propertyName": "type"
      +      },
      +      "oneOf": [
      +        {
      +          "$ref": "#/$defs/CompiledSelfSubagent"
      +        },
      +        {
      +          "$ref": "#/$defs/CompiledProfileSubagent"
      +        }
      +      ]
      +    },
      +    "CompiledSubagentModel": {
      +      "properties": {
      +        "cache_retention": {
      +          "$ref": "#/$defs/ModelCacheRetention"
      +        },
      +        "configured_model_id": {
      +          "$ref": "#/$defs/ConfiguredModelID"
      +        },
      +        "context_window_tokens": {
      +          "type": "integer"
      +        },
      +        "default_max_output_tokens": {
      +          "type": "integer"
      +        },
      +        "reasoning": {
      +          "$ref": "#/$defs/CompiledModelReasoning"
      +        }
      +      },
      +      "type": "object"
      +    },
      +    "CompiledTool": {
      +      "properties": {
      +        "deferred": {
      +          "type": "boolean"
      +        },
      +        "description": {
      +          "type": "string"
      +        },
      +        "enabled": {
      +          "type": "boolean"
      +        },
      +        "input_schema": {
      +          "additionalProperties": true,
      +          "type": "object"
      +        },
      +        "integration_id": {
      +          "$ref": "#/$defs/IntegrationID"
      +        },
      +        "permission": {
      +          "$ref": "#/$defs/ToolPermissionSelection"
      +        },
      +        "type": {
      +          "enum": [
      +            "built_in",
      +            "custom"
      +          ],
      +          "type": "string"
      +        }
      +      },
      +      "required": [
      +        "enabled",
      +        "permission"
      +      ],
      +      "type": "object"
      +    },
      +    "ConfiguredModelID": {
      +      "pattern": "^mdl_[a-z2-7]{26}$",
      +      "type": "string"
      +    },
      +    "ConfiguredModelRevisionID": {
      +      "pattern": "^mrev_[a-z2-7]{26}$",
      +      "type": "string"
      +    },
      +    "IntegrationID": {
      +      "pattern": "^itg_[a-z2-7]{26}$",
      +      "type": "string"
      +    },
      +    "IntegrationName": {
      +      "description": "Immutable, project-unique integration name used in config keys and qualified tool names.",
      +      "pattern": "^[a-zA-Z][a-zA-Z0-9-]{0,31}$",
      +      "type": "string"
      +    },
      +    "MachineID": {
      +      "description": "Machine ID (mch_...).",
      +      "pattern": "^mch_[a-z2-7]{26}$",
      +      "type": "string"
      +    },
      +    "MachinePoolID": {
      +      "description": "Machine pool ID (mpo_...).",
      +      "pattern": "^mpo_[a-z2-7]{26}$",
      +      "type": "string"
      +    },
      +    "MemoryStoreAccess": {
      +      "enum": [
      +        "read",
      +        "read_write"
      +      ],
      +      "type": "string"
      +    },
      +    "MemoryStoreID": {
      +      "pattern": "^mst_[a-z2-7]{26}$",
      +      "type": "string"
      +    },
      +    "ModelAPIFormat": {
      +      "description": "Wire protocol the model endpoint speaks.",
      +      "enum": [
      +        "openai-responses",
      +        "openai-chat-completions",
      +        "anthropic-messages"
      +      ],
      +      "type": "string"
      +    },
      +    "ModelCacheRetention": {
      +      "description": "Prompt-cache preference for model requests; `short` when omitted. `short` applies the route's default caching (explicit cache breakpoints where the provider requires them) and, where the route accepts one, a stable conversation key for cache-aware routing. `long` prefers the route's extended cache lifetime where one exists (currently Anthropic's one-hour cache, which on Bedrock requires Claude 4.5 or newer) and behaves like `short` elsewhere. `none` sends no Omnara-managed cache controls or conversation key; providers may still cache prefixes on their own.",
      +      "enum": [
      +        "none",
      +        "short",
      +        "long"
      +      ],
      +      "type": "string"
      +    },
      +    "ModelProviderAPIVariantResponse": {
      +      "type": "string"
      +    },
      +    "OrganizationID": {
      +      "pattern": "^org_[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"
      +    },
      +    "SecretID": {
      +      "description": "Secret ID (sec_...).",
      +      "pattern": "^sec_[a-z2-7]{26}$",
      +      "type": "string"
      +    },
      +    "SkillID": {
      +      "pattern": "^skl_[a-z2-7]{26}$",
      +      "type": "string"
      +    },
      +    "Timestamp": {
      +      "format": "date-time",
      +      "type": "string"
      +    },
      +    "ToolPermissionSelection": {
      +      "properties": {
      +        "mode": {
      +          "description": "Permission mode applied by default.",
      +          "type": "string"
      +        },
      +        "parameters": {
      +          "additionalProperties": true,
      +          "description": "Parameters for the default mode.",
      +          "type": "object"
      +        }
      +      },
      +      "required": [
      +        "mode",
      +        "parameters"
      +      ],
      +      "type": "object"
      +    }
      +  },
      +  "properties": {
      +    "compiled_definition": {
      +      "$ref": "#/$defs/CompiledAgentConfig"
      +    },
      +    "created_at": {
      +      "$ref": "#/$defs/Timestamp"
      +    },
      +    "effective_definition_hash": {
      +      "type": "string"
      +    },
      +    "id": {
      +      "$ref": "#/$defs/AgentConfigID"
      +    },
      +    "instruction_hash": {
      +      "type": "string"
      +    },
      +    "model": {
      +      "$ref": "#/$defs/AgentConfigModel"
      +    },
      +    "org_id": {
      +      "$ref": "#/$defs/OrganizationID"
      +    },
      +    "project_id": {
      +      "$ref": "#/$defs/ProjectID"
      +    },
      +    "source": {
      +      "description": "Saved source text, exactly as sent.",
      +      "type": "string"
      +    },
      +    "source_format": {
      +      "enum": [
      +        "yaml",
      +        "json"
      +      ],
      +      "type": "string"
      +    }
      +  },
      +  "required": [
      +    "id",
      +    "org_id",
      +    "project_id",
      +    "effective_definition_hash",
      +    "model",
      +    "created_at",
      +    "compiled_definition"
      +  ],
      +  "type": "object"
      +}
  2. Changed3 schema fields changedv0.1.1
    • addedInput schema / properties / agentConfigID / description
      Added value: +"Agent config ID (acfg_...)."
    • addedInput schema / properties / orgID / description
      Added value: +"Organization ID (org_...)."
    • addedInput schema / properties / projectID / description
      Added value: +"Project ID (proj_...)."
  3. First observed

TDQS

B3.4/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint and destructiveHint=false, so the safety profile is covered and the bar is lowered. The description still adds real domain behavior: names are resolved to IDs, and configs Omnara derives itself (subagents, integration launches) carry no source, which tells the agent not to treat a missing source as an error.

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 tightly written sentences with the payload description front-loaded and the derived-config caveat second. No filler or redundant 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?

An output schema exists, so return values need not be spelled out, and the description nonetheless characterizes the return shape (compiled vs. source). For a three-required-ID read operation that is close to complete; only error/missing-config behavior is unaddressed.

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% with all three identifiers documented including their prefixes and patterns, so the baseline is 3. The description adds no further parameter-level meaning, such as scoping or cross-org lookup behavior.

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 verb and resource ('Returns one agent config') and qualifies the payload: compiled definition with names resolved to IDs, plus source when one exists. It clearly is the read counterpart to 'configs_create' among the siblings, though it never names a sibling explicitly.

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

Usage Guidelines2/5

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

There is no explicit when-to-use or when-not-to-use guidance, and no named alternative for related lookups (e.g. listing or creating configs). Usage is only implied by the required agentConfigID argument in the schema.

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