Skip to main content
Glama

publish_declaration

Idempotent

Publish a declaration at its expected revision using current service-control authority. Returns reassessment status and preserves older revisions. Requires the connected identity and declaration:write. Preserve request_id and payload on retries.

Input Schema

NameRequiredDescriptionDefault
request_idYes
service_idYes
declarationYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed12 schema fields changed
    • addedInput schema / properties / declaration / properties / paths / items / properties / metadata / properties / actions / items / properties / bindings
      Added value: +{
      +  "description": "Documented task-to-argument mappings. Path arguments replace {argument} in request.url.",
      +  "items": {
      +    "additionalProperties": false,
      +    "properties": {
      +      "argument": {
      +        "maxLength": 100,
      +        "minLength": 1,
      +        "type": "string"
      +      },
      +      "format": {
      +        "default": "raw",
      +        "enum": [
      +          "raw",
      +          "date",
      +          "datetime",
      +          "year",
      +          "lower",
      +          "upper",
      +          "comma_list",
      +          "slug"
      +        ],
      +        "type": "string"
      +      },
      +      "location": {
      +        "enum": [
      +          "path",
      +          "query",
      +          "body",
      +          "tool_argument"
      +        ],
      +        "type": "string"
      +      },
      +      "requirement": {
      +        "enum": [
      +          "doi",
      +          "npm_package",
      +          "repository",
      +          "country_code",
      +          "country_name",
      +          "year",
      +          "date_from",
      +          "date_to",
      +          "window_start",
      +          "window_end",
      +          "min_magnitude",
      +          "location",
      +          "search_keywords",
      +          "currency_base",
      +          "currency_quotes",
      +          "source_language",
      +          "target_language",
      +          "limit"
      +        ],
      +        "type": "string"
      +      },
      +      "template": {
      +        "description": "Documented value syntax, e.g. from_publication_date:{value}. Bindings sharing a query argument are comma-joined.",
      +        "maxLength": 200,
      +        "minLength": 3,
      +        "pattern": "\\{value\\}",
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "requirement",
      +      "argument",
      +      "location"
      +    ],
      +    "type": "object"
      +  },
      +  "maxItems": 20,
      +  "type": "array"
      +}
    • addedInput schema / properties / declaration / properties / paths / items / properties / metadata / properties / actions / items / properties / data_mode
      Added value: +{
      +  "description": "demo or sample responses are not real data for the requested entity.",
      +  "enum": [
      +    "production",
      +    "sandbox",
      +    "demo",
      +    "sample"
      +  ],
      +  "type": "string"
      +}
    • addedInput schema / properties / declaration / properties / paths / items / properties / metadata / properties / actions / items / properties / field_semantics
      Added value: +{
      +  "additionalProperties": {
      +    "maxLength": 300,
      +    "type": "string"
      +  },
      +  "description": "Meaning of fields that differ across providers, e.g. which publication date.",
      +  "type": "object"
      +}
    • addedInput schema / properties / declaration / properties / paths / items / properties / metadata / properties / actions / items / properties / identifiers
      Added value: +{
      +  "items": {
      +    "additionalProperties": false,
      +    "properties": {
      +      "argument": {
      +        "maxLength": 100,
      +        "minLength": 1,
      +        "type": "string"
      +      },
      +      "location": {
      +        "enum": [
      +          "path",
      +          "query",
      +          "body",
      +          "tool_argument"
      +        ],
      +        "type": "string"
      +      },
      +      "type": {
      +        "enum": [
      +          "doi",
      +          "npm_package",
      +          "repository",
      +          "country_code",
      +          "url",
      +          "other"
      +        ],
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "type",
      +      "argument",
      +      "location"
      +    ],
      +    "type": "object"
      +  },
      +  "maxItems": 10,
      +  "type": "array"
      +}
    • addedInput schema / properties / declaration / properties / paths / items / properties / metadata / properties / actions / items / properties / lookup_mode
      Added value: +{
      +  "description": "exact_identifier returns the record for a supplied identifier; keyword_search ranks matches and may not contain it.",
      +  "enum": [
      +    "exact_identifier",
      +    "keyword_search",
      +    "filter_list",
      +    "conversion",
      +    "mutation"
      +  ],
      +  "type": "string"
      +}
    • addedInput schema / properties / declaration / properties / paths / items / properties / metadata / properties / actions / items / properties / output_coverage
      Added value: +{
      +  "additionalProperties": false,
      +  "description": "Fields the documented response contains. Absent coverage is unknown, never complete.",
      +  "properties": {
      +    "fields": {
      +      "items": {
      +        "maxLength": 100,
      +        "minLength": 1,
      +        "type": "string"
      +      },
      +      "maxItems": 50,
      +      "type": "array"
      +    },
      +    "omissions": {
      +      "default": [],
      +      "items": {
      +        "maxLength": 100,
      +        "minLength": 1,
      +        "type": "string"
      +      },
      +      "maxItems": 50,
      +      "type": "array"
      +    },
      +    "source_url": {
      +      "$ref": "#/properties/declaration/properties/entity/properties/operator/properties/source_url"
      +    }
      +  },
      +  "required": [
      +    "fields"
      +  ],
      +  "type": "object"
      +}
    • addedInput schema / properties / declaration / properties / paths / items / properties / metadata / properties / actions / items / properties / subject
      Added value: +{
      +  "description": "What the operation acts on, e.g. scholarly_work, repository, country, earthquake_event.",
      +  "maxLength": 100,
      +  "minLength": 2,
      +  "type": "string"
      +}
    • addedInput schema / properties / declaration / properties / paths / items / properties / metadata / properties / actions / items / properties / validation
      Added value: +{
      +  "description": "Checks an agent applies to the response before treating it as task evidence.",
      +  "items": {
      +    "additionalProperties": false,
      +    "properties": {
      +      "check": {
      +        "maxLength": 300,
      +        "minLength": 3,
      +        "type": "string"
      +      },
      +      "field": {
      +        "maxLength": 100,
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "check"
      +    ],
      +    "type": "object"
      +  },
      +  "maxItems": 10,
      +  "type": "array"
      +}
    • changedInput schema / properties / declaration / properties / paths / items / properties / metadata / properties / workflow / items / properties / prerequisites / items / enum
      Previous value: -[
      -  "runtime",
      -  "credentials",
      -  "permissions",
      -  "billing",
      -  "spending"
      -]New value: +[
      +  "runtime",
      +  "network",
      +  "credentials",
      +  "permissions",
      +  "billing",
      +  "entitlement",
      +  "spending"
      +]
    • changedInput schema / properties / declaration / properties / paths / items / properties / metadata / properties / workflow / items / properties / prerequisites / maxItems
      Previous value: -5New value: +7
    • changedInput schema / properties / declaration / properties / paths / items / properties / metadata / properties / workflow / items / properties / provides / items / enum
      Previous value: -[
      -  "runtime",
      -  "credentials",
      -  "permissions",
      -  "billing",
      -  "spending"
      -]New value: +[
      +  "runtime",
      +  "network",
      +  "credentials",
      +  "permissions",
      +  "billing",
      +  "entitlement",
      +  "spending"
      +]
    • changedInput schema / properties / declaration / properties / paths / items / properties / metadata / properties / workflow / items / properties / provides / maxItems
      Previous value: -5New value: +7
  2. Added

TDQS

A3.6/5.0
Behavior4/5

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

Annotations already declare the safety profile (readOnlyHint=false, idempotentHint=true, destructiveHint=false), and the description adds genuinely new context: it states the return value (reassessment status), the effect on history ('preserves older revisions'), the required scope, and retry semantics. It reinforces rather than contradicts the idempotent hint.

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?

Four tight sentences, front-loaded with purpose, then effects, auth, and retry guidance in descending priority. No filler, though the retry sentence could be marginally clearer about what a retry means operationally.

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

Completeness3/5

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

For a complex mutation with no output schema and a large nested input, the description covers auth, effects, history preservation, and retries but leaves service_id and the entire declaration structure undocumented. Adequate but with visible gaps given the tool's complexity.

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 0% and the declaration object is deeply nested, so the description carries the burden. It adds meaning to request_id (preserve on retries) and expected_revision (optimistic-concurrency anchor), which the bare integer schema does not convey, but it never explains service_id or the large nested declaration payload.

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?

States a specific verb (publish) and resource (declaration) with scope ('at its expected revision using current service-control authority'). This distinguishes it from draft/submit/validate siblings on the mutation surface, though it never names an alternative tool explicitly.

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?

Provides prerequisites ('connected identity and declaration:write') and a retry instruction ('Preserve request_id and payload on retries'), which is real operational guidance. However, it never says when to use this versus draft_submission, validate_submission, or preflight_submission, leaving the workflow choice to inference.

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