Skip to main content
Glama

Get resource

get_resource
Read-onlyIdempotent

Retrieve an Azure resource by its full ARM ID. Specify the API version for the resource type to get the current resource details.

Instructions

Fetch a resource by its full ARM id. Provide the api-version for the resource type.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
apiVersionYesAPI version for this resource type, e.g. 2023-07-01
resourceIdYesFull ARM resource id (/subscriptions/…/providers/…)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.1

TDQS

A3.8/5.0
Behavior3/5

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

The word 'Fetch' aligns with the annotations (readOnlyHint=true, idempotentHint=true, destructiveHint=false), but the description adds no behavioral context beyond what the annotations already provide. It does not mention failure modes, existence handling, or auth requirements. No contradiction exists.

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?

Two short sentences with no filler. The core action is front-loaded, and the second sentence gives the one essential usage detail. Every sentence earns its place.

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 simple, read-only GET tool with two required string parameters, the description is largely sufficient: it identifies the target and the required inputs. It could be more complete by stating the return shape or error behavior, especially since there is no output schema, but the core calling contract is clear.

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 fully documents resourceId and apiVersion. The description adds little beyond restating 'full ARM id' and 'api-version for the resource type.' Baseline 3 is appropriate because the schema carries the semantic weight.

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

Purpose5/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: 'Fetch a resource by its full ARM id.' This clearly distinguishes it from the list_* sibling tools, which enumerate resources rather than fetch a single one. The required id-based access makes the tool's purpose unambiguous.

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?

The description implies the main usage scenario: call this when you have a full ARM resource id and need the resource. It also tells the caller to provide the api-version. However, it does not explicitly contrast with list_resources or state when not to use this tool, so the guidance is mostly implicit.

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