Skip to main content
Glama

get_my_context

Retrieve campaign context for your current step, including goal, task, upstream output previews, and notes. Upstream outputs are summarized to keep responses compact; fetch full details when needed.

Instructions

Get campaign context for the step you're executing.

Upstream outputs are returned as previews (head + tail + total char count) so the context bundle stays small. Call read_step_output(<id>) when you need the full body of a specific upstream output.

Args: step_id: Your step ID. Inferred from $SORTIE_STEP_ID if unset.

Returns: Campaign goal, your task, upstream output previews, notes.

Next: Do your work, then call complete_step(summary) or fail_step(error).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
step_idNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior5/5

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

No annotations exist, so description carries full burden. It discloses that upstream outputs are previews (head + tail + total char count) to keep context small, and step_id can be auto-inferred from environment variable. Behavior is fully transparent.

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?

Description is well-structured with clear sections (description, Args, Returns, Next) and is concise without wasted words. Every sentence adds value.

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

Completeness5/5

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

Given the tool's simplicity and presence of output schema, the description covers return components, workflow context, and next steps, making it complete.

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

Parameters5/5

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

The single parameter step_id is explained beyond the schema: it can be inferred from $SORTIE_STEP_ID if unset. This adds meaning, compensating for 0% schema coverage.

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 the tool gets campaign context for the executing step, with a specific verb and resource. It distinguishes itself from sibling tools like read_step_output by prefacing output previews.

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

Usage Guidelines5/5

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

Explicitly says when to use the tool (get context for your step), prescribes alternatives (call read_step_output for full body), and provides next steps (complete_step or fail_step).

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/retospect/sortie-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server