From D&D Wiki
|This material is published under the OGL|
School transmutation; Level bard 2, cleric 2, druid 2, sorcerer/wizard 2, witch 2
Casting Time 1 hour
Components V, S, M (see below)
Target one weapon, suit of armor, shield, tool, or skill kit touched
Saving Throw none; Spell Resistance no
You convert a non-masterwork item into its masterwork equivalent. A normal sword becomes a masterwork sword, a suit of leather armor becomes a masterwork suit of leather armor, a set of thieves' tools becomes masterwork thieves' tools, and so on. If the target object has no masterwork equivalent, the spell has no effect. You can affect 50 pieces of ammunition as if they were one weapon. You decide if the object's appearance changes to reflect this improved quality.
The material component for the spell is magical reagents worth the cost difference between a normal item and the equivalent masterwork item (typically 300 gp for a weapon, 150 gp for armor, or 50 gp for a tool). If an object has multiple masterwork options (such as a double weapon, or a spiked shield that could be made masterwork as a weapon or armor), you choose one option of the object to affect (though you can cast the spell again to affect another option).