Skip to main content
Glama

task_scope

Read-only

Verifies if a path is inside the active task's declared scope to prevent AI coding agents from accessing files outside assigned boundaries.

Instructions

Check whether a path is inside the active task's declared scope.

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": {
      "path": "<path>"
    },
    "name": "task_scope"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathYes

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv6.14.0

TDQS

B3.3/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true and openWorldHint=false, so safety is covered. The description adds one genuinely useful behavioral fact: the result depends on the state of the 'active task', meaning the answer can change without the input path changing. It says nothing about what a false answer implies or any error conditions.

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 verb and the condition under test, with zero filler. Nothing could be removed without losing meaning.

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?

An output schema exists, so return values need not be described. However, for a tool whose entire contract hinges on scope semantics, the description never explains what a 'declared scope' is or how it is established, leaving an agent to discover that via task_start or get_active_context. Adequate but thin for the concept it encodes.

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% for the single 'path' parameter, so the description is the only source of meaning — but it only echoes the parameter name. It does not clarify whether the path must be absolute or relative, filesystem vs. logical, or how it is compared against declared scope. Baseline 3 is the ceiling here given no added semantics.

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 and resource: 'Check whether a path is inside the active task's declared scope.' This is a clear predicate tool, distinguishable from state-mutating siblings like task_start or task_complete. It does not explicitly differentiate itself from adjacent verification tools such as check_policy, but the purpose itself is unambiguous.

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?

There is no explicit when-to-use or when-not-to-use guidance, and no named alternative. Usage is only implied by the word 'Check' — an agent must infer that this is a pre-flight validation step before acting on a path. Nothing tells the agent what to do if the path is outside scope.

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