Skip to main content
Glama

load_agent_context

Load a scoped context bundle for an agent while enforcing contract limits on tier, budget, and allowed reads to keep runtime knowledge access within defined boundaries.

Instructions

Load a scoped context bundle for an agent, respecting its contract (tier, budget, allowed reads).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
projectNo
agent_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

C2.8/5.0
Behavior2/5

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

With no annotations, the description carries the full behavioral burden. It hints at contract enforcement (tier, budget, allowed reads) and scoping, but does not state side effects, permissions, failure behavior, or return characteristics.

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?

One front-loaded sentence with no filler. The core action and its scoping constraint appear immediately.

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

Completeness2/5

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

For a 2-parameter tool with no annotations and no output schema, the description is too sparse. It does not explain what the returned context bundle contains, how contract violations manifest, or how project and agent_id interact.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, so the description must compensate for both parameters. It only indirectly implies that agent_id refers to an agent; it says nothing about what project means, whether it is optional, or how either parameter affects the loaded bundle.

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 (Load) and resource (scoped context bundle for an agent), and adds the contract constraint. It is clear what the tool does, though it does not explicitly distinguish itself from the sibling load_repo_context.

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?

The description implies use when an agent needs a context bundle, but gives no when-to-use guidance, no when-not-to-use guidance, and does not name or contrast with alternatives such as load_repo_context.

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