Skip to main content
Glama

Vira – Create, Teach & Manage AI Behavior

get_scope

Read-onlyIdempotent

Read the immutable scope configured for this MCP session. Use to read the scoped resource; use its create, execute, or transition sibling for state changes. Required fields: organizationId, projectId, environmentId. The authenticated MCP session supplies the tenant scope; any supplied scope identifiers must match it. Unknown fields are rejected. This is read-only and returns scope-bound data.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "get_scope"
  }
}

Input Schema

NameRequiredDescriptionDefault
projectIdNoAuthenticated customer scope identifier; must match the API key scope and is never inferred from model text.
environmentIdNoAuthenticated customer scope identifier; must match the API key scope and is never inferred from model text.
organizationIdNoAuthenticated customer scope identifier; must match the API key scope and is never inferred from model text.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changed
    • addedInput schema / additionalProperties
      Added value: +false
    • addedInput schema / properties / environmentId / description
      Added value: +"Authenticated customer scope identifier; must match the API key scope and is never inferred from model text."
    • addedInput schema / properties / organizationId / description
      Added value: +"Authenticated customer scope identifier; must match the API key scope and is never inferred from model text."
    • addedInput schema / properties / projectId / description
      Added value: +"Authenticated customer scope identifier; must match the API key scope and is never inferred from model text."
  2. First observed

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and openWorldHint=false, so the safety profile is largely pre-supplied. The description adds genuinely new context, namely that the scope is immutable, that identifiers must match the API key scope, and that unknown fields are rejected. It stops short of saying what an unauthorized or mismatched call returns.

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

Conciseness4/5

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

The core purpose and the read-vs-write routing are front-loaded, and most sentences carry real information. The clause 'Use to read the scoped resource' is vague and the 'Required fields' sentence is both redundant and inconsistent with the schema, costing a point.

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

Completeness4/5

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

For a three-parameter, read-only, closed-world tool with no output schema, the description covers mutability, scope provenance, and validation strictness. It does not describe the shape of the returned scope object, though with no output schema that remains a minor gap.

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 100%, and each parameter's schema text already states it must match the API key scope and is never inferred from model text, so the description largely restates that constraint. The statement 'Required fields: organizationId, projectId, environmentId' conflicts with the schema, which declares no required array (required count 0), and may cause an agent to over-supply parameters.

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 opens with a specific verb+resource ('Read the immutable scope configured for this MCP session'), which is unambiguous. It gestures at sibling differentiation by pointing to 'create, execute, or transition' siblings for state changes, but the phrase 'Use to read the scoped resource' blurs whether the tool reads the scope itself or a resource bounded by it.

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 explicitly routes write-type needs to other siblings rather than this tool, and explains that the authenticated session supplies the tenant scope. It does not cover failure conditions (e.g., what happens on a scope mismatch) or edge cases like calling it when no scope is configured.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources