Skip to main content
Glama
opentofu

OpenTofu MCP Server

Official
by opentofu

get-resource-docs

Retrieve detailed documentation for any OpenTofu resource by specifying provider namespace, provider name, and resource name.

Instructions

Get detailed documentation for a specific OpenTofu resource by provider namespace, provider name, and resource name.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
namespaceYesProvider namespace (e.g., 'hashicorp', 'opentofu')
nameYesProvider name WITHOUT 'terraform-provider-' prefix (e.g., 'aws', 'kubernetes')
resourceYesResource name WITHOUT provider prefix (e.g., 's3_bucket', 'instance')
versionNoProvider version (e.g., 'v4.0.0'). If not specified, latest version will be used
Behavior3/5

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

No annotations exist, so the description must convey behavioral traits. It describes a read operation but does not explicitly state read-only nature, absence of side effects, or any prerequisites. The description is minimal but non-contradictory.

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?

The description is a single sentence that conveys the essential purpose without extraneous words. It is front-loaded with the action and resource, making it efficient for an agent to parse.

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?

Given the tool's simplicity, the description adequately covers the main purpose and required parameters. The optional 'version' parameter is omitted from the description but is present in the schema, which is acceptable. No output schema exists, so return value explanation is not needed.

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%, so the baseline is 3. The description names three parameters (namespace, provider name, resource name) but adds no additional semantics beyond the schema descriptions. The optional 'version' parameter is not mentioned in the description.

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 specifies the action ('Get detailed documentation') and the resource ('specific OpenTofu resource'), and identifies the three key identifiers (provider namespace, provider name, resource name). It clearly distinguishes from siblings like get-datasource-docs, which target different entity types.

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 usage for fetching resource docs but offers no explicit guidance on when to use this tool over siblings (e.g., get-datasource-docs) or when not to use it. No exclusion criteria or context are provided, leaving the agent to infer usage.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/opentofu/opentofu-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server