Skip to main content
Glama

sessions_get_agent_json

Fetch and parse the agent configuration for a specific session and agent to inspect its settings and metadata.

Instructions

Fetch and parse sessions/<session_id>/agents/<agent_id>/agent.json.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
agent_idNoagent_default
session_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.3/5.0
Behavior2/5

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

There are no annotations, so the description carries full responsibility for behavioral disclosure. It only states 'Fetch and parse', implying a read operation, but does not mention error behavior, authentication needs, whether the file must exist, or what the parsed output looks like. Significant behavioral aspects are left undisclosed.

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?

A single sentence that front-loads the action and the exact resource path. No filler or redundant content, so it is optimally concise for the information it conveys.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a simple fetch tool with only two parameters, the description is minimally adequate. However, the absence of annotations, output schema, and any explanation of return value or failure modes leaves gaps that a more complete description could fill.

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 0%, but the path template in the description clarifies that session_id and agent_id are path segments. This adds some meaning beyond the bare schema, though it does not explain their semantics, formats, or constraints beyond that usage.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states a specific verb (Fetch and parse) and a specific resource (sessions/<session_id>/agents/<agent_id>/agent.json). The file path makes the tool's operation unambiguous and distinguishes it from siblings like sessions_get_session_json and sessions_get_raw.

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?

No guidance is given about when to use this tool versus alternatives such as registry_get_agent or sessions_list_agents. The purpose is stated, but the description does not mention context, prerequisites, or when another tool would be more appropriate.

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