Skip to main content
Glama

Get device context

get_device_context
Read-only

Everything about one device for a support ticket in one call: the agents matching a hostname (the full name or, when no agent has it, the first DNS label cut to 15 characters) or an agent_id, each with its latest health sample, its active alerts (newest 10) and dashboard links that open Live Session or remote control after a technician signs in and confirms. matchedBy says how the device was found; "short_name" can be a different computer whose name starts the same way, and "none" means no agent matched. Give hostname or agent_id.

Input Schema

NameRequiredDescriptionDefault
agent_idNoAn agentId from list_agents. Takes precedence over hostname.
hostnameNoThe device name as the PSA or ticket holds it, for example APP01 or app01.corp.example.com.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.1/5.0
Behavior5/5

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

Beyond the readOnlyHint and openWorldHint annotations, the description discloses substantial behavior: hostname matching fallback with first DNS label truncated to 15 characters, matchedBy values including short_name ambiguity and none, active alerts capped at newest 10, and dashboard links requiring technician sign-in and confirmation. This gives an agent the practical context needed to interpret ambiguous matches and side effects.

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 purpose is front-loaded and every sentence contains relevant operational detail. The paragraph is dense with nested parentheticals and packed clauses, which slightly reduces scanability, but there is no clearly wasted wording.

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 a two-parameter, read-only lookup with no output schema, the description is complete enough: it explains matching behavior, what is returned, the alerts cap, dashboard-link requirements, and matchedBy failure modes. An agent has enough information to call it correctly and interpret ambiguous results.

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

Parameters4/5

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

Schema coverage is 100% and the schema already documents agent_id precedence and gives hostname examples. The description adds meaningful semantics beyond the schema by explaining how hostname matching works, including the truncated short-name fallback and the risk that short_name may refer to a different computer, plus how matchedBy reports the result.

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 states a specific verb and resource: retrieving everything about one device for a support ticket in one call, including agents, health samples, alerts, and dashboard links. It implies differentiation from list_agents and get_agent by aggregating device-specific context, but it does not name or explicitly contrast those siblings.

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

Usage Guidelines3/5

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

Usage is implied: it is for a support-ticket lookup on a single device, and the caller should give hostname or agent_id. However, there is no explicit guidance on when to choose this tool over get_agent, list_agents, list_alerts, or get_fleet_summary, nor any stated exclusions.

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