Skip to main content
Glama

get_task_context

Maps requested form fields to authorized semantic context bundles and bounded notes without exposing profile values, so agents can assemble complete, scoped form data.

Instructions

Retrieve authorized contextual bundles and bounded supporting notes without profile values. Map requested form fields to explicit semantic names used in the bundles (e.g. street, city, postal_code, country). Supply all components required by the current form; an address is not complete just because country matches. Subject and role must be known or clarified. Pass selected_bundle_id only for an explicit current-task choice. Notes and observations never set defaults. Ready results still require scoped request_profile_fields to read values. Legacy fields without bundles remain available through match_form_fields; no context is not proof of missing facts.

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": {
      "target_origin": "<target_origin>",
      "purpose": "<purpose>",
      "requested_fields": "<requested_fields>"
    },
    "name": "get_task_context"
  }
}

Input Schema

NameRequiredDescriptionDefault
roleNo
limitNo
purposeYes
subjectNo
field_labelNoActual form label, required to reuse an exact legacy mapping. Billing and delivery labels must not be interchanged.
task_summaryNoOptional transient description to rank supporting notes; never changes defaults or gets persisted.
target_originYes
requested_fieldsYes
selected_bundle_idNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.2

TDQS

B3.4/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does disclose meaningful behavior: results exclude profile values, ready results still require a follow-up scoped request_profile_fields call, notes/observations never set defaults, and absence of context is not evidence of missing facts. What it omits is whether this read is safe/idempotent in any explicit terms and how notes are bounded or ranked, but the disclosure is substantively richer than the structured fields.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The purpose is front-loaded correctly, but the remainder is a dense run-on chain of imperatives with no grouping or bullets, mixing invocation rules, field-mapping guidance, and negative constraints. Most sentences carry information, yet the delivery makes the important constraints easy to lose.

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 9-parameter, no-annotation, no-output-schema tool, the description covers the workflow and the conceptual shape of the result (bundles plus notes, no values). It does not cover the required target_origin or purpose parameters, nor how limit/ranking behaves, so an agent can invoke it but may guess on core required inputs.

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 coverage is low (22% of 9 params), so the description must compensate. It does add meaning for requested_fields (map to semantic names like street, city, postal_code, country), selected_bundle_id (only for an explicit current-task choice), and subject/role (must be known or clarified). target_origin, purpose, and limit receive no explanation anywhere, leaving a real gap.

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

Purpose3/5

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

The opening verb+resource ("Retrieve authorized contextual bundles and bounded supporting notes without profile values") does state an action and a scope, and the closing sentence distinguishes it from match_form_fields for legacy fields. However, the phrasing is heavy with undefined internal jargon ("bundles", "profile values", "bounded") and the purpose is buried under procedural imperatives, so an agent gets only an approximate sense of what it actually gets back.

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

Usage Guidelines4/5

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

It supplies several concrete conditions: supply all form components, subject and role must be known or clarified, selected_bundle_id only for an explicit current-task choice, and notes never set defaults. It also names alternatives with their trigger conditions — match_form_fields for legacy fields and request_profile_fields to actually read values. It stops short of a full when-not statement, but the guidance is well above generic.

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