Skip to main content
Glama
koorosh-alt

ContextBuilder (ctx)

by koorosh-alt

ctx.refresh.app_sources

Refresh and rebuild structured context for Shopify apps by fetching web sources, extracting content, and updating the context graph.

Instructions

Refresh and rebuild app context state + graph for a given app. Fetches public web sources, extracts structured content, builds context graph.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
app_keyYesApp identifier
forceNoForce full rebuild even if no changes detected
idempotency_keyNoIdempotency key for deduplication
Behavior2/5

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

No annotations are provided, so the description carries the full burden of behavioral disclosure. It mentions 'refresh and rebuild' and 'force full rebuild', implying a mutation operation that could be resource-intensive or have side effects, but it fails to detail critical aspects like required permissions, rate limits, potential data loss, or response format. This is a significant gap for a tool with no annotation coverage.

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?

The description is highly concise and front-loaded, using a single sentence that efficiently conveys the core action and key steps without unnecessary words. Every part of the sentence earns its place by specifying the operation and its components, making it easy to parse quickly.

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?

Given the complexity of a tool that rebuilds app context state and graphs, with no annotations and no output schema, the description is insufficient. It omits crucial details like what 'structured content' entails, how the graph is built, error handling, or the return value. This leaves significant gaps for an agent to understand the tool's full behavior and outcomes.

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%, so the schema already documents all parameters. The description does not add any semantic details beyond the schema, such as explaining the implications of 'force' or 'idempotency_key' in the context of refreshing app sources. With high schema coverage, the baseline score of 3 is appropriate, as the description does not compensate but also does not detract.

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 clearly states the action ('Refresh and rebuild') and the target ('app context state + graph for a given app'), with specific details about fetching web sources and building a graph. However, it does not explicitly distinguish this from sibling tools like 'ctx.get.app_state_summary' or 'ctx.pull.context_slice', which might involve similar app context operations, leaving some ambiguity in differentiation.

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 provides no guidance on when to use this tool versus alternatives. It lacks context on prerequisites, such as whether the app must be pre-configured, or exclusions, like when to use 'ctx.get.app_state_summary' for read-only checks instead. This absence of usage context leaves the agent without clear direction.

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/koorosh-alt/hengam-context-builder'

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