Skip to main content
Glama

Ver detalle de una regulación de gob.ec

get_regulacion_info
Read-only

Retrieve a gob.ec regulation’s type, Registro Oficial reference, description, and PDF link by ID to cite it or read its official PDF text.

Instructions

One gob.ec regulation's type, Registro Oficial reference, description and PDF link. Take regulacion_id from search_regulaciones; read the PDF's text with read_pdf.

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": {
      "regulacion_id": "<regulacion_id>"
    },
    "name": "get_regulacion_info"
  }
}

Input Schema

NameRequiredDescriptionDefault
formatNotext summary (default) or json structured result.text
regulacion_idYesRegulation ID (e.g. "2990")

Output Schema

NameRequiredDescriptionDefault
sourceNo
metadatosYes
url_fuenteNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv0.15.0
    • changedInput schema / properties / regulacion_id / description
      Previous value: -"Regulation ID (e.g. \"5051\")"New value: +"Regulation ID (e.g. \"2990\")"
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "properties": {
      +    "metadatos": {
      +      "properties": {
      +        "contrato": {
      +          "const": "ecudatamcp.response.v1"
      +        }
      +      },
      +      "required": [
      +        "contrato"
      +      ],
      +      "type": "object"
      +    },
      +    "source": {},
      +    "url_fuente": {}
      +  },
      +  "required": [
      +    "metadatos"
      +  ],
      +  "type": "object"
      +}
  2. Changed1 schema field changedv0.13.0
    • changedOutput schema / (root)
      Previous value: -{
      -  "additionalProperties": true,
      -  "type": "object"
      -}New value: +null
  3. Changed2 schema fields changedv0.10.0
    • addedInput schema / properties / format / description
      Added value: +"text summary (default) or json structured result."
    • addedInput schema / properties / regulacion_id / description
      Added value: +"Regulation ID (e.g. \"5051\")"
  4. Changed4 schema fields changedv0.8.14
    • removedInput schema / properties / format / title
      Removed value: -"Format"
    • removedInput schema / properties / regulacion_id / title
      Removed value: -"Regulacion Id"
    • removedInput schema / title
      Removed value: -"get_regulacion_infoArguments"
    • removedOutput schema / title
      Removed value: -"get_regulacion_infoDictOutput"
  5. First observedv0.8.12

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false and openWorldHint=true, so the safety profile is covered. The description adds real value by disclosing that a PDF link is included in the result, which signals a follow-up path rather than inline document content. It does not mention behavior for a nonexistent ID or external-fetch latency, which keeps it below a 5.

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 zero filler: the first front-loads what the tool returns, the second gives the input source and the follow-up call. Every clause carries actionable information.

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 two-parameter read tool with a full output schema and complete annotations, the description covers input provenance, returned fields, and next step. Minor omissions such as invalid-ID behavior or whether the PDF link is always present are acceptable given the output schema documents the structure.

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 both parameters (including the text/json format enum) are already documented in the schema. The description's only added semantics is the origin of regulacion_id, which is useful routing but does not deepen the meaning of either parameter. Baseline 3 is appropriate.

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?

States the resource ('one gob.ec regulation') and exactly what it returns: type, Registro Oficial reference, description and PDF link. The listing of returned fields makes it immediately distinguishable from search_regulaciones and read_pdf, so an agent can select it without opening the schema.

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

Usage Guidelines5/5

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

Explicitly tells the agent where the required ID comes from ('Take regulacion_id from search_regulaciones') and what to do next ('read the PDF's text with read_pdf'). Both the alternative sibling and the condition selecting it are named, leaving nothing to inference.

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

Deploy Server

Other Tools